diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-02-24 12:28:41 -0500 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-02-24 12:28:41 -0500 |
| commit | ea8682571c35cc17dfe2c0f3797a63e86616801a (patch) | |
| tree | 4268dbccc147327d3eb241cf0896c301484fb476 /fish | |
| parent | 2c14665f05452bfb55c50e6eecc06e932382529c (diff) | |
add starship jj tools
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/.config/starship.toml | 12 |
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 + } } ' ''' |
