From d97aa34372811ae24df3fef25355aa192547ee92 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 28 Mar 2017 22:25:48 +0200 Subject: [PATCH] Fix emotty theme when using zsh 5.2 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 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