Add starship theming
This commit is contained in:
parent
165c24b44d
commit
0ffffc4bb8
|
@ -10,6 +10,7 @@
|
|||
./shell/helix.nix
|
||||
./shell/zellij.nix
|
||||
./shell/zsh.nix
|
||||
./shell/starship.nix
|
||||
];
|
||||
home = {
|
||||
username = "lillian";
|
||||
|
|
50
home-manager/shared/shell/starship.nix
Normal file
50
home-manager/shared/shell/starship.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.starship = let
|
||||
flavour = "macchiato"; # One of `latte`, `frappe`, `macchiato`, or `mocha`
|
||||
in {
|
||||
enable = true;
|
||||
settings =
|
||||
{
|
||||
add_newline = true;
|
||||
format = lib.concatStrings [
|
||||
"$sudo"
|
||||
"$all"
|
||||
];
|
||||
character.success_symbol = "[➜](bold purple)";
|
||||
package.disabled = true;
|
||||
sudo = {
|
||||
symbol = "witch ";
|
||||
style = "bold blue";
|
||||
format = "[$symbol]($style)";
|
||||
disabled = false;
|
||||
};
|
||||
hostname = {
|
||||
ssh_only = false;
|
||||
format = "[$hostname](bold yellow)[$ssh_symbol](bold blue):";
|
||||
trim_at = "";
|
||||
disabled = false;
|
||||
};
|
||||
username = {
|
||||
show_always = true;
|
||||
format = "[$user]($style)@";
|
||||
};
|
||||
git_branch.style = "bold blue";
|
||||
directory.style = "bold blue";
|
||||
direnv.disabled = false;
|
||||
palette = "catppuccin_${flavour}";
|
||||
}
|
||||
// builtins.fromTOML (builtins.readFile
|
||||
(pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "starship";
|
||||
rev = "5629d23"; # Replace with the latest commit hash
|
||||
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
|
||||
}
|
||||
+ /palettes/${flavour}.toml));
|
||||
};
|
||||
}
|
|
@ -6,12 +6,6 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Enable starship
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
catppuccin.enable = true;
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue