Added bookmark support to bobthefish theme mercurial prompt

This commit is contained in:
Denis Kolesnikov 2014-11-16 17:54:58 +07:00 committed by Justin Hileman
parent 548008b67b
commit 212626b7bd

View File

@ -85,8 +85,9 @@ function __bobthefish_git_branch -d 'Get the current git branch (or commitish)'
end end
function __bobthefish_hg_branch -d 'Get the current hg branch' function __bobthefish_hg_branch -d 'Get the current hg branch'
set -g branch (hg branch ^/dev/null) set -l branch (hg branch ^/dev/null)
echo "$__bobthefish_branch_glyph $branch" set -l book " @ "(hg book | grep \* | cut -d\ -f3)
echo "$__bobthefish_branch_glyph $branch$book"
end end
function __bobthefish_pretty_parent -d 'Print a parent directory, shortened to fit the prompt' function __bobthefish_pretty_parent -d 'Print a parent directory, shortened to fit the prompt'