My dotfiles

fish: and now, for an important lesson about return codes

bitquabit.com 16210e2a adc34ff3

verified
+1 -1
+1 -1
fish/functions/fish_vcs_prompt.fish
··· 2 2 # If this is a jj repo, just note that it is one. We don't have branches 3 3 # in the same way as other VCSes, but it's nice to know where's jj-enabled. 4 4 command -qs jj; and command jj root --ignore-working-copy &>/dev/null 5 - if test $status -ne 1 5 + if test $status -eq 0 6 6 echo ' [jj]' 7 7 end 8 8 end