8e1cfc91541a2c9daef9e0790323ecaf369229c2
- Author
- Alexis Hildebrandt <afh@surryhill.net>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Fix emotty theme when using zsh 5.2 (#5998)
see http://www.zsh.org/mla/workers/2015/msg03259.html
Diff
1diff --git a/themes/emotty.zsh-theme b/themes/emotty.zsh-theme
2index 34d491ff04217cf3719fafebcb56462909d9ec94..13adad78d64afc40d8a923ba425bea225511b6f1 100644
3--- a/themes/emotty.zsh-theme
4+++ b/themes/emotty.zsh-theme
5@@ -68,6 +68,10 @@ prompt_glyph="%{%(#.${root_prompt}.${user_prompt}) %2G%}"
6
7 setopt promptsubst
8
9+# Workaround for zsh 5.2 release (kudos to @timothybasanov)
10+autoload +X VCS_INFO_nvcsformats
11+functions[VCS_INFO_nvcsformats]=${functions[VCS_INFO_nvcsformats]/local -a msgs/}
12+
13 autoload -U add-zsh-hook
14 autoload -Uz vcs_info
15