From 8e1cfc91541a2c9daef9e0790323ecaf369229c2 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sun, 15 Apr 2018 15:16:28 +0200 Subject: [PATCH] Fix emotty theme when using zsh 5.2 (#5998) see http://www.zsh.org/mla/workers/2015/msg03259.html --- themes/emotty.zsh-theme | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/emotty.zsh-theme b/themes/emotty.zsh-theme index 34d491ff..13adad78 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