mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
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
1 changed files with 1 additions and 8 deletions
|
@ -50,14 +50,7 @@ function hg_prompt_info {
|
|||
dirty="$ZSH_THEME_HG_PROMPT_CLEAN"
|
||||
fi
|
||||
|
||||
echo "${ZSH_PROMPT_BASE_COLOR}\
|
||||
${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}"
|
||||
echo "${ZSH_THEME_HG_PROMPT_PREFIX}${branch}${dirty}${ZSH_THEME_HG_PROMPT_SUFFIX}"
|
||||
}
|
||||
|
||||
function hg_dirty_choose {
|
||||
|
|
Loading…
Reference in a new issue