mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 06:31:13 -03:00
__fish_hg_prompt: Add bookmark support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user