mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-25 19:25:06 +00:00
fish_jj_prompt: don't error if jj not installed
This commit is contained in:
parent
0debddc9e5
commit
670541eec8
1 changed files with 5 additions and 0 deletions
|
@ -1,4 +1,9 @@
|
|||
function fish_jj_prompt
|
||||
# If jj isn't installed, there's nothing we can do
|
||||
# Return 1 so the calling prompt can deal with it
|
||||
if not command -sq jj
|
||||
return 1
|
||||
end
|
||||
jj log 2>/dev/null --no-graph --ignore-working-copy --color=always --revisions @ \
|
||||
--template '
|
||||
concat(
|
||||
|
|
Loading…
Reference in a new issue