summaryrefslogtreecommitdiff
path: root/themes/minimal.zsh-theme
diff options
context:
space:
mode:
authorBrian Hartvigsen <brian.andrew@brianandjenny.com>2015-04-28 00:05:11 -0700
committerBrian Hartvigsen <brian.andrew@brianandjenny.com>2015-04-28 00:05:11 -0700
commit5c9c373cd7944b514c22c292333700bea0408203 (patch)
treefeaf747c4cb148fc66f45328bd609d05bd6a1692 /themes/minimal.zsh-theme
parentff4663a6b83b8dd205da3968de4bc458abc08b2c (diff)
downloadzsh-5c9c373cd7944b514c22c292333700bea0408203.tar.gz
zsh-5c9c373cd7944b514c22c292333700bea0408203.tar.bz2
zsh-5c9c373cd7944b514c22c292333700bea0408203.zip
Fix minimal.zsh-theme's check for in_svn and add support for mercurial
Diffstat (limited to 'themes/minimal.zsh-theme')
-rw-r--r--themes/minimal.zsh-theme10
1 files changed, 8 insertions, 2 deletions
diff --git a/themes/minimal.zsh-theme b/themes/minimal.zsh-theme
index a2a16031f..f79e795d9 100644
--- a/themes/minimal.zsh-theme
+++ b/themes/minimal.zsh-theme
@@ -6,13 +6,19 @@ ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
+ZSH_THEME_HG_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
+ZSH_THEME_HG_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
+ZSH_THEME_HG_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
+ZSH_THEME_HG_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
vcs_status() {
- if [[ ( $(whence in_svn) != "" ) && ( $(in_svn) == 1 ) ]]; then
+ if [[ $(whence in_svn) != "" ]] && in_svn; then
svn_prompt_info
+ elif [[ $(whence in_hg) != "" ]] && in_hg; then
+ hg_prompt_info
else
git_prompt_info
fi
}
-PROMPT='%2~ $(vcs_status)»%b ' \ No newline at end of file
+PROMPT='%2~ $(vcs_status)»%b '