Unverified Commit 24974a13 authored by Romain Failliot's avatar Romain Failliot Committed by Marc Cornellà

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
parent e52584c9
...@@ -50,14 +50,7 @@ function hg_prompt_info { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment