diff options
author | Murilo Opsfelder Araujo <mopsfelder@gmail.com> | 2015-02-20 15:17:00 -0200 |
---|---|---|
committer | Murilo Opsfelder Araujo <mopsfelder@gmail.com> | 2015-02-20 16:12:39 -0200 |
commit | 0a99ca0df0f53e546c9c6ac5240e38f3a2dd2c3b (patch) | |
tree | 173990bec0e30cdfff890c959383f68d39797016 /plugins/pass | |
parent | 77140a2ea7f8fbf6d5618546d7e7dc8fd03eb707 (diff) | |
download | zsh-0a99ca0df0f53e546c9c6ac5240e38f3a2dd2c3b.tar.gz zsh-0a99ca0df0f53e546c9c6ac5240e38f3a2dd2c3b.tar.bz2 zsh-0a99ca0df0f53e546c9c6ac5240e38f3a2dd2c3b.zip |
plugins: mercurial: Update the order prompt vars are displayed
If a user sets ZSH_THEME_HG_PROMPT_* as the following, he ends up with
%{$reset_color%} resetting the bold style of last character ")" because
_SUFFIX was expanded before calling hg_dirty():
ZSH_THEME_HG_PROMPT_PREFIX="%{$fg_bold[blue]%}hg:(%{$fg[white]%}"
ZSH_THEME_HG_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_HG_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_HG_PROMPT_CLEAN="%{$fg[blue]%})"
With this patch, the variable ZSH_THEME_HG_PROMPT_SUFFIX is lastly
displayed, following the same order as in git_prompt_info(),
i.e. <prefix><dirty><suffix>.
Diffstat (limited to 'plugins/pass')
0 files changed, 0 insertions, 0 deletions