feat(afowler): add mercurial support

Closes #5992
This commit is contained in:
Frank Van Damme 2017-01-10 09:23:49 +01:00 committed by Marc Cornellà
parent ee46d198ad
commit a1a63f4c7d
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -1,5 +1,10 @@
PROMPT='%m %B%F{blue}:: %b%F{green}%3~ $(git_prompt_info)%B%(!.%F{red}.%F{blue})»%f%b '
PROMPT='%m %B%F{blue}:: %b%F{green}%3~ $(hg_prompt_info)$(git_prompt_info)%B%(!.%F{red}.%F{blue})»%f%b '
RPS1='%(?..%F{red}%? ↵%f)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}"
ZSH_THEME_HG_PROMPT_PREFIX="%{$fg[magenta]%}hg:%{$fg[yellow]%}"
ZSH_THEME_HG_PROMPT_SUFFIX="%{$fg[magenta]%} %{$reset_color%}"
ZSH_THEME_HG_PROMPT_DIRTY=" %{$fg[red]%}✗"
ZSH_THEME_HG_PROMPT_CLEAN=""