Skip to content

Commit

Permalink
Starship improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi committed Dec 16, 2023
1 parent dcd22db commit cb5b5da
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion modules/home-manager/starship.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
add_newline = false;
scan_timeout = 10;

format = lib.concatStrings [ "$nix_shell" "$directory" "$git_state" "$git_branch" "$character" ];
format = lib.concatStrings [ "$nix_shell" "$directory" "$git_state" "$git_branch" "$git_status" "$character" ];

nix_shell = {
disabled = false;
Expand All @@ -27,6 +27,17 @@

git_branch.style = "${colors.normal.accent} bold";

git_status = {
disabled = false;

format = "[$ahead_behind]($style)";
style = "${colors.normal.red} bold";

ahead = "⇡$count ";
behind = "⇣$count ";
diverged = "⇡$ahead_count ⇣$behind_count ";
};

character = {
success_symbol = "[❯](${colors.normal.white} bold)";
error_symbol = "[❯](${colors.normal.white} bold)";
Expand Down

0 comments on commit cb5b5da

Please sign in to comment.