summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2018-04-15 15:16:28 +0200
committerMarc Cornellà <marc.cornella@live.com>2018-04-15 15:16:28 +0200
commit8e1cfc91541a2c9daef9e0790323ecaf369229c2 (patch)
tree976bef77a6d97a121aeaa34fb525e698ed8cb81a /themes
parent30a5124f9d087ca7184c9ccf797a2e1dcfe79845 (diff)
downloadzsh-8e1cfc91541a2c9daef9e0790323ecaf369229c2.tar.gz
zsh-8e1cfc91541a2c9daef9e0790323ecaf369229c2.tar.bz2
zsh-8e1cfc91541a2c9daef9e0790323ecaf369229c2.zip
Fix emotty theme when using zsh 5.2 (#5998)
see http://www.zsh.org/mla/workers/2015/msg03259.html
Diffstat (limited to 'themes')
-rw-r--r--themes/emotty.zsh-theme4
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/emotty.zsh-theme b/themes/emotty.zsh-theme
index 34d491ff0..13adad78d 100644
--- a/themes/emotty.zsh-theme
+++ b/themes/emotty.zsh-theme
@@ -68,6 +68,10 @@ prompt_glyph="%{%(#.${root_prompt}.${user_prompt}) %2G%}"
setopt promptsubst
+# Workaround for zsh 5.2 release (kudos to @timothybasanov)
+autoload +X VCS_INFO_nvcsformats
+functions[VCS_INFO_nvcsformats]=${functions[VCS_INFO_nvcsformats]/local -a msgs/}
+
autoload -U add-zsh-hook
autoload -Uz vcs_info