fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningerfish_jj_prompt: remove not-so-useful bits123b262e9

master
526 B19 linesraw
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
4    if not command -sq jj
5        return 1
6    end
7    set -l info "$(
8        jj log 2>/dev/null --no-graph --ignore-working-copy --color=always --revisions @ \
9            --template '
10                separate(" ",
11                    if(conflict, label("conflict", "×")),
12                )
13            '
14    )"
15    or return 1
16    if test -n "$info"
17        printf ' %s' $info
18    end
19end