Adjust starship git status

This commit is contained in:
Kiana Sheibani 2022-03-12 20:46:41 -05:00
parent 3e186a6904
commit 5e01947f32
2 changed files with 26 additions and 4 deletions

View file

@ -13,7 +13,10 @@
userName = "kiana-S";
userEmail = "kiana.a.sheibani@gmail.com";
extraConfig.credential.helper = "store";
extraConfig.git.allowForcePush = true;
extraConfig = {
credential.helper = "store";
git.allowForcePush = true;
init.defaultBranch = "main";
};
};
}

View file

@ -4,7 +4,9 @@
programs.starship.settings = {
add_newline = true;
battery.disabled = true;
character =
let char = ""; charVi = "";
in {
@ -20,6 +22,23 @@
read_only_style = "cyan";
};
battery.disabled = true;
nix_shell = {
format = "via [$symbol$name \($state\)]($style) ";
};
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)";
};
};
}