forked from extern/ohmyzsh
feat(mercurial)!: use PREFIX
and SUFFIX
settings in hg_prompt_info
(#6631)
BREAKING CHANGE: the `hg_prompt_info` function now uses `ZSH_THEME_HG_PROMPT_PREFIX` and `ZSH_THEME_HG_PROMPT_SUFFIX` variables when displaying branch information, similar to the `git_prompt_info` function. Closes #6631
This commit is contained in:
parent
e52584c901
commit
24974a135c
@ -50,14 +50,7 @@ function hg_prompt_info {
|
|||||||
dirty="$ZSH_THEME_HG_PROMPT_CLEAN"
|
dirty="$ZSH_THEME_HG_PROMPT_CLEAN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${ZSH_PROMPT_BASE_COLOR}\
|
echo "${ZSH_THEME_HG_PROMPT_PREFIX}${branch}${dirty}${ZSH_THEME_HG_PROMPT_SUFFIX}"
|
||||||
${ZSH_THEME_HG_PROMPT_PREFIX}\
|
|
||||||
${ZSH_THEME_REPO_NAME_COLOR}\
|
|
||||||
${branch}\
|
|
||||||
${ZSH_PROMPT_BASE_COLOR}\
|
|
||||||
${dirty}\
|
|
||||||
${ZSH_THEME_HG_PROMPT_SUFFIX}\
|
|
||||||
${ZSH_PROMPT_BASE_COLOR}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hg_dirty_choose {
|
function hg_dirty_choose {
|
||||||
|
Loading…
Reference in New Issue
Block a user