1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-25 01:10:46 +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:
Romain Failliot 2018-02-18 19:19:03 -05:00 committed by Marc Cornellà
parent e52584c901
commit 24974a135c
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -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 {