Catppuccin for Starship
- Copy your desired palette(s) from
palettes
๐๏ธ - Find (or create) your
starship.toml
to paste into- Typically at
~/.config/starship.toml
- Typically at
- Paste your palette(s)
- Note that palette tables should be grouped together at the bottom of your config
- Set your
palette = "catppuccin_flavor"
value, save and quit!
Check out this example starship.toml for how to define and use custom palettes
With Home Manager
- Add this snippet to your home-manager configuration
{ pkgs, ... }: {
programs.starship =
let
flavour = ""; # One of `latte`, `frappe`, `macchiato`, or `mocha`
in
{
enable = true;
settings = {
# Other config here
format = "$all"; # Remove this line to disable the default prompt format
palette = "catppuccin_${flavour}";
} // builtins.fromTOML (builtins.readFile
(pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "starship";
rev = ""; # Replace with the latest commit hash
sha256 = "";
} + /palettes/${flavour}.toml));
};
}
- Rebuild your configuration. There should be an error about the invalid checksum
- Paste the sha256 checksum from the error message into the
sha256
field - Rebuild again
ย
Copyright ยฉ 2021-present Catppuccin Org