From 881edd93924bf895b2b9ba2aee83ce4331222c4a Mon Sep 17 00:00:00 2001 From: Alejandro Baez Date: Fri, 7 Aug 2015 17:32:10 -0400 Subject: [PATCH] mercurial: updated prompt_info to hg_get_id --- plugins/mercurial/mercurial.plugin.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/mercurial/mercurial.plugin.zsh b/plugins/mercurial/mercurial.plugin.zsh index 96fb5f52..acbfc9d5 100644 --- a/plugins/mercurial/mercurial.plugin.zsh +++ b/plugins/mercurial/mercurial.plugin.zsh @@ -29,9 +29,13 @@ function hg_get_branch_name() { echo $(hg branch) } +function hg_get_id() { + echo $(hg id -i -b -B -t) +} + function hg_prompt_info { if [ $(in_hg) ]; then - _DISPLAY=$(hg_get_branch_name) + _DISPLAY=$(hg_get_id) echo "$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_HG_PROMPT_PREFIX\ $ZSH_THEME_REPO_NAME_COLOR$_DISPLAY$ZSH_PROMPT_BASE_COLOR$ZSH_PROMPT_BASE_COLOR$(hg_dirty)$ZSH_THEME_HG_PROMPT_SUFFIX$ZSH_PROMPT_BASE_COLOR" unset _DISPLAY