mercurial: updated prompt_info to hg_get_id
This commit is contained in:
parent
676266345b
commit
881edd9392
@ -29,9 +29,13 @@ function hg_get_branch_name() {
|
|||||||
echo $(hg branch)
|
echo $(hg branch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hg_get_id() {
|
||||||
|
echo $(hg id -i -b -B -t)
|
||||||
|
}
|
||||||
|
|
||||||
function hg_prompt_info {
|
function hg_prompt_info {
|
||||||
if [ $(in_hg) ]; then
|
if [ $(in_hg) ]; then
|
||||||
_DISPLAY=$(hg_get_branch_name)
|
_DISPLAY=$(hg_get_id)
|
||||||
echo "$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_HG_PROMPT_PREFIX\
|
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"
|
$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
|
unset _DISPLAY
|
||||||
|
Loading…
Reference in New Issue
Block a user