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"; userName = "kiana-S";
userEmail = "kiana.a.sheibani@gmail.com"; userEmail = "kiana.a.sheibani@gmail.com";
extraConfig.credential.helper = "store"; extraConfig = {
extraConfig.git.allowForcePush = true; credential.helper = "store";
git.allowForcePush = true;
init.defaultBranch = "main";
};
}; };
} }

View file

@ -4,7 +4,9 @@
programs.starship.settings = { programs.starship.settings = {
add_newline = true; add_newline = true;
battery.disabled = true;
character = character =
let char = ""; charVi = ""; let char = ""; charVi = "";
in { in {
@ -20,6 +22,23 @@
read_only_style = "cyan"; 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)";
};
}; };
} }