2022-01-06 21:14:02 -05:00
|
|
|
|
{ ... }:
|
2022-04-10 15:45:41 -04:00
|
|
|
|
let bright-green = ''#60c000'';
|
|
|
|
|
in {
|
2022-01-06 21:14:02 -05:00
|
|
|
|
programs.starship.enable = true;
|
|
|
|
|
|
2022-04-10 15:45:41 -04:00
|
|
|
|
# This config is intended to make starship look like Tide,
|
|
|
|
|
# since that was the previous prompt I used and I think it looks better.
|
|
|
|
|
|
2022-01-06 21:14:02 -05:00
|
|
|
|
programs.starship.settings = {
|
2022-04-10 15:45:41 -04:00
|
|
|
|
|
2022-04-10 16:04:40 -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 {
|
2022-04-10 15:45:41 -04:00
|
|
|
|
success_symbol = "[${char}](bold ${bright-green})";
|
2022-01-06 21:14:02 -05:00
|
|
|
|
error_symbol = "[${char}](bold red)";
|
2022-04-10 15:45:41 -04:00
|
|
|
|
vicmd_symbol = "[${charVi}](bold ${bright-green})";
|
2022-01-06 21:14:02 -05:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
directory = {
|
|
|
|
|
truncation_length = 6;
|
|
|
|
|
truncation_symbol = "⋯ /";
|
2022-04-10 15:45:41 -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-03-12 20:56:44 -05:00
|
|
|
|
symbol = "❄️ ";
|
2022-03-12 20:46:41 -05:00
|
|
|
|
};
|
|
|
|
|
|
2022-04-10 15:45:41 -04:00
|
|
|
|
jobs = {
|
|
|
|
|
format = "[$symbol$number]($style) ";
|
|
|
|
|
symbol = "";
|
|
|
|
|
style = "${bright-green}";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
status = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
format = "[\\($int\\)]($style) ";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
time = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
format = "[$time]($style)";
|
|
|
|
|
style = "dimmed cyan";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
git_branch.style = "bold ${bright-green}";
|
|
|
|
|
|
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)";
|
2022-03-12 20:46:41 -05:00
|
|
|
|
modified = "[!$count ](bright-yellow)";
|
|
|
|
|
staged = "[+$count ](bright-yellow)";
|
|
|
|
|
renamed = "[»$count ](bright-yellow)";
|
|
|
|
|
deleted = "[✘$count ](red)";
|
|
|
|
|
};
|
2022-01-06 21:14:02 -05:00
|
|
|
|
};
|
|
|
|
|
}
|