fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
123b262e9
master
1function fish_jj_prompt 2# If jj isn't installed, there's nothing we can do 3# Return 1 so the calling prompt can deal with it 4if not command -sq jj 5return 1 6end 7set -l info"$ ( 8jj log 2> /dev/null --no-graph --ignore-working-copy --color=always --revisions @ \ 9--template ' 10separate(" ", 11if(conflict, label("conflict", "×")), 12) 13' 14) " 15or return 1 16if test -n " $info " 17printf ' %s' $info 18end 19end