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

69 lines
1.5 KiB
Nix
Raw Normal View History

2022-01-06 21:14:02 -05:00
{ ... }:
{
2022-01-06 21:14:02 -05:00
programs.starship.enable = true;
programs.starship.settings = {
2022-04-10 15:45:41 -04:00
2022-04-20 23:30:16 -04:00
format = "$directory$nix_shell$all$fill$cmd_duration$status$jobs$time$line_break$character";
2022-04-10 15:45:41 -04:00
fill.symbol = " ";
2022-01-06 21:14:02 -05:00
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 bright-green)";
error_symbol = "[${char}](bold bright-red)";
vicmd_symbol = "[${charVi}](bold bright-green)";
2022-01-06 21:14:02 -05:00
};
directory = {
truncation_length = 6;
truncation_symbol = " /";
2022-05-01 12:05:32 -04:00
read_only = " ";
2022-01-06 21:14:02 -05:00
read_only_style = "cyan";
};
2022-03-09 11:51:08 -05:00
2022-03-12 20:46:41 -05:00
nix_shell = {
2022-04-10 15:45:41 -04:00
format = "[$symbol]($style)";
2022-05-01 12:05:32 -04:00
symbol = " ";
2022-03-12 20:46:41 -05:00
};
2022-04-10 15:45:41 -04:00
jobs = {
format = "[$symbol$number]($style) ";
2022-05-01 12:05:32 -04:00
symbol = " ";
style = "green";
2022-04-10 15:45:41 -04:00
};
status = {
disabled = false;
format = "[\\($int\\)]($style) ";
};
time = {
disabled = false;
2022-04-20 23:30:16 -04:00
format = "[$time]($style) ";
2022-04-10 15:45:41 -04:00
style = "dimmed cyan";
};
git_branch.style = "bold green";
2022-04-10 15:45:41 -04:00
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)";
2022-04-10 15:45:41 -04:00
stashed = "[\\$$count ](cyan)";
modified = "[!$count ](yellow)";
staged = "[+$count ](yellow)";
renamed = "[»$count ](yellow)";
2022-03-12 20:46:41 -05:00
deleted = "[$count ](red)";
};
2022-01-06 21:14:02 -05:00
};
}