Nixos: Move shell prompt (Starship) into Fish module
This commit is contained in:
@ -215,5 +215,27 @@ in {
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
programs.starship = let
|
||||
flavour = "latte"; # One of `latte`, `frappe`, `macchiato`, or `mocha`
|
||||
in {
|
||||
enable = true;
|
||||
enableFishIntegration = config.modules.fish.enable;
|
||||
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 = "3e3e54410c3189053f4da7a7043261361a1ed1bc";
|
||||
sha256 = "sha256-soEBVlq3ULeiZFAdQYMRFuswIIhI9bclIU8WXjxd7oY=";
|
||||
}
|
||||
+ /palettes/${flavour}.toml));
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user