From 3a9d158cc9f413591263738e08f1f5a10c627a48 Mon Sep 17 00:00:00 2001 From: Ronan Amicel Date: Wed, 4 Jan 2012 12:20:30 +0100 Subject: Show current bookmark in Mercurial --- git-prompt.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-prompt.sh b/git-prompt.sh index a63830b..d71d9b4 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -393,8 +393,13 @@ parse_hg_status() { branch=`hg branch 2> /dev/null` + [[ -f $hg_root/.hg/bookmarks.current ]] && bookmark=`cat "$hg_root/.hg/bookmarks.current"` + [[ -z $modified ]] && [[ -z $untracked ]] && [[ -z $added ]] && clean=clean vcs_info=${branch/default/D} + if [[ "$bookmark" ]] ; then + vcs_info+=/$bookmark + fi } -- cgit v1.2.3