summaryrefslogtreecommitdiff
path: root/fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish')
-rw-r--r--fish/.config/starship.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/.config/starship.toml b/fish/.config/starship.toml
index 3587f05..103c6c5 100644
--- a/fish/.config/starship.toml
+++ b/fish/.config/starship.toml
@@ -98,7 +98,7 @@ git status --porcelain | awk '
}
'
'''
-when = 'test -d .git && ! test -d .jj'
+when = 'git rev-parse --is-inside-work-tree 2>/dev/null && ! jj root 2>/dev/null'
shell = ["sh"]
format = "[](fg:overlay)[[ $output ](bg:overlay)]($style)[](fg:overlay) "
style = "bg:overlay fg:love"