aboutsummaryrefslogtreecommitdiff
path: root/fish/.config/starship.toml
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-02-24 12:28:41 -0500
committerGrace Yoder <grace_yoder@outlook.com>2026-02-24 12:28:41 -0500
commitea8682571c35cc17dfe2c0f3797a63e86616801a (patch)
tree4268dbccc147327d3eb241cf0896c301484fb476 /fish/.config/starship.toml
parent2c14665f05452bfb55c50e6eecc06e932382529c (diff)
add starship jj tools
Diffstat (limited to 'fish/.config/starship.toml')
-rw-r--r--fish/.config/starship.toml12
1 files changed, 8 insertions, 4 deletions
diff --git a/fish/.config/starship.toml b/fish/.config/starship.toml
index 662aeab..3587f05 100644
--- a/fish/.config/starship.toml
+++ b/fish/.config/starship.toml
@@ -75,7 +75,7 @@ diverged = '⇕[\[](bg:overlay fg:iris)[⇡\(${ahead_count}\)](bg:overlay fg:foa
behind = '[⇣\(${count}\)](bg:overlay fg:rose)'
[custom.jj]
-command = 'jj-starship --git-symbol ""| sed "s/\x1b\[0m//g"'
+command = 'jj-starship --git-symbol "" --no-git-status | sed "s/\x1b\[0m//g"'
when = "jj-starship detect"
shell = ["sh"]
format = "[](fg:overlay)[[ $output ](bg:overlay)]($style)[](fg:overlay) "
@@ -88,9 +88,13 @@ git status --porcelain | awk '
/^\?\?/ { untracked++ }
/^[D ]D/ || /^D/ { deleted++ }
END {
- if (modified) printf "\033[38;2;246;193;119m%d ", modified
- if (untracked) printf "\033[38;2;246;193;119m%d ", untracked
- if (deleted) printf "\033[38;2;235;111;146m󰆴%d ", deleted
+ if (modified + untracked + deleted == 0) {
+ printf "\033[38;2;196;167;231m✓"
+ } else {
+ if (modified) printf "\033[38;2;246;193;119m%d ", modified
+ if (untracked) printf "\033[38;2;246;193;119m%d ", untracked
+ if (deleted) printf "\033[38;2;235;111;146m󰆴%d ", deleted
+ }
}
'
'''