Overhaul starship config
This commit is contained in:
parent
45b38dce61
commit
0c3fe287d4
|
@ -1,8 +1,16 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
let bright-green = ''#60c000'';
|
||||||
|
in {
|
||||||
programs.starship.enable = true;
|
programs.starship.enable = true;
|
||||||
|
|
||||||
|
# This config is intended to make starship look like Tide,
|
||||||
|
# since that was the previous prompt I used and I think it looks better.
|
||||||
|
|
||||||
programs.starship.settings = {
|
programs.starship.settings = {
|
||||||
|
|
||||||
|
format = "$directory$nix_shell$all$fill$cmd_duration$status$jobs$time$line_break$character";
|
||||||
|
fill.symbol = " ";
|
||||||
|
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
|
|
||||||
battery.disabled = true;
|
battery.disabled = true;
|
||||||
|
@ -10,22 +18,42 @@
|
||||||
character =
|
character =
|
||||||
let char = "⮞"; charVi = "⮜";
|
let char = "⮞"; charVi = "⮜";
|
||||||
in {
|
in {
|
||||||
success_symbol = "[${char}](bold green)";
|
success_symbol = "[${char}](bold ${bright-green})";
|
||||||
error_symbol = "[${char}](bold red)";
|
error_symbol = "[${char}](bold red)";
|
||||||
vicmd_symbol = "[${charVi}](bold green)";
|
vicmd_symbol = "[${charVi}](bold ${bright-green})";
|
||||||
};
|
};
|
||||||
|
|
||||||
directory = {
|
directory = {
|
||||||
truncation_length = 6;
|
truncation_length = 6;
|
||||||
truncation_symbol = "⋯ /";
|
truncation_symbol = "⋯ /";
|
||||||
read_only = " 🔒";
|
read_only = " ";
|
||||||
read_only_style = "cyan";
|
read_only_style = "cyan";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix_shell = {
|
nix_shell = {
|
||||||
|
format = "[$symbol]($style)";
|
||||||
symbol = "❄️ ";
|
symbol = "❄️ ";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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}";
|
||||||
|
|
||||||
git_status = {
|
git_status = {
|
||||||
format = "$stashed$ahead_behind$conflicted$deleted$renamed$staged$modified$untracked";
|
format = "$stashed$ahead_behind$conflicted$deleted$renamed$staged$modified$untracked";
|
||||||
|
|
||||||
|
@ -34,7 +62,7 @@
|
||||||
behind = "[⇣$count ](cyan)";
|
behind = "[⇣$count ](cyan)";
|
||||||
diverged = "[⇕ ](cyan)";
|
diverged = "[⇕ ](cyan)";
|
||||||
untracked = "[?$count ](cyan)";
|
untracked = "[?$count ](cyan)";
|
||||||
stashed = "[\$$count ](cyan)";
|
stashed = "[\\$$count ](cyan)";
|
||||||
modified = "[!$count ](bright-yellow)";
|
modified = "[!$count ](bright-yellow)";
|
||||||
staged = "[+$count ](bright-yellow)";
|
staged = "[+$count ](bright-yellow)";
|
||||||
renamed = "[»$count ](bright-yellow)";
|
renamed = "[»$count ](bright-yellow)";
|
||||||
|
|
Loading…
Reference in a new issue