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

74 lines
1.8 KiB
Nix
Raw Permalink 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";
2023-09-21 23:37:09 -04:00
before_repo_root_style = "bold blue";
repo_root_style = "bold blue";
2022-01-06 21:14:02 -05:00
};
2022-03-09 11:51:08 -05:00
2022-03-12 20:46:41 -05:00
nix_shell = {
2023-02-10 09:54:41 -05:00
format = "[$symbol \\($state\\) ]($style)";
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;
2023-02-10 09:54:41 -05:00
pipestatus = true;
2022-04-10 15:45:41 -04:00
format = "[\\($int\\)]($style) ";
2023-02-10 09:54:41 -05:00
pipestatus_segment_format = "$int";
pipestatus_format = "[\\($pipestatus\\)]($style) ";
2022-04-10 15:45:41 -04:00
};
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";
};
2023-02-10 09:54:41 -05:00
git_branch.style = "bold bright-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";
2023-02-10 09:54:41 -05:00
conflicted = "[~$count ](bright-red)";
ahead = "[$count ](bright-cyan)";
behind = "[$count ](bright-cyan)";
diverged = "[ ](bright-cyan)";
untracked = "[?$count ](bright-cyan)";
stashed = "[\\$$count ](bright-cyan)";
modified = "[!$count ](yellow)";
staged = "[+$count ](yellow)";
renamed = "[»$count ](yellow)";
2023-02-10 09:54:41 -05:00
deleted = "[$count ](bright-red)";
2022-03-12 20:46:41 -05:00
};
2022-01-06 21:14:02 -05:00
};
}