mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 14:34:05 +00:00
fish_jj_prompt: remove change ID
This is not really helpful because it's somewhat transient; also we can usually use the @ alias.
This commit is contained in:
parent
9785824794
commit
0f4e195819
1 changed files with 9 additions and 7 deletions
|
@ -4,16 +4,18 @@ function fish_jj_prompt
|
|||
if not command -sq jj
|
||||
return 1
|
||||
end
|
||||
jj log 2>/dev/null --no-graph --ignore-working-copy --color=always --revisions @ \
|
||||
--template '
|
||||
concat(
|
||||
" ",
|
||||
set -l info "$(
|
||||
jj log 2>/dev/null --no-graph --ignore-working-copy --color=always --revisions @ \
|
||||
--template '
|
||||
separate(" ",
|
||||
format_short_change_id_with_hidden_and_divergent_info(self),
|
||||
bookmarks,
|
||||
tags,
|
||||
if(conflict, label("conflict", "×")),
|
||||
if(empty, label("empty", "(empty)"))
|
||||
),
|
||||
)'
|
||||
)
|
||||
'
|
||||
)"
|
||||
if test -n $info
|
||||
printf ' %s' $info
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue