mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
__fish_hg_prompt: Add bookmark support
This commit is contained in:
parent
eadd4d9b71
commit
a19f4dd4c8
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,12 @@ function __fish_hg_prompt --description 'Write out the hg prompt'
|
|||
return
|
||||
end
|
||||
|
||||
set -l bookmark (hg bookmark -q)
|
||||
# Unfortunately, hg bookmark doesn't exit non-zero when there's no bookmark
|
||||
if test -n "$bookmark"
|
||||
set branch "$branch/$bookmark"
|
||||
end
|
||||
|
||||
echo -n '|'
|
||||
|
||||
set -l repo_status (hg status |cut -c 1-2|sort -u|uniq)
|
||||
|
|
Loading…
Reference in a new issue