nixos-config/common/home-manager/shell/starship.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2022-01-06 21:14:02 -05:00
{ ... }:
{
programs.starship.enable = true;
programs.starship.settings = {
add_newline = true;
2022-03-12 20:46:41 -05:00
battery.disabled = true;
2022-01-06 21:14:02 -05:00
character =
let char = ""; charVi = "";
in {
success_symbol = "[${char}](bold green)";
error_symbol = "[${char}](bold red)";
vicmd_symbol = "[${charVi}](bold green)";
};
directory = {
truncation_length = 6;
truncation_symbol = " /";
read_only = " 🔒";
read_only_style = "cyan";
};
2022-03-09 11:51:08 -05:00
2022-03-12 20:46:41 -05:00
nix_shell = {
2022-03-12 20:50:28 -05:00
symbol = "";
format = "via [$symbol$name( \($state\))]($style) ";
2022-03-12 20:46:41 -05:00
};
git_status = {
format = "$stashed$ahead_behind$conflicted$deleted$renamed$staged$modified$untracked";
conflicted = "[~$count ](red)";
ahead = "[$count ](cyan)";
behind = "[$count ](cyan)";
diverged = "[ ](cyan)";
untracked = "[?$count ](cyan)";
stashed = "[\$$count ](cyan)";
modified = "[!$count ](bright-yellow)";
staged = "[+$count ](bright-yellow)";
renamed = "[»$count ](bright-yellow)";
deleted = "[$count ](red)";
};
2022-01-06 21:14:02 -05:00
};
}