浏览代码

Fix emotty theme when using zsh 5.2 (#5998)

see http://www.zsh.org/mla/workers/2015/msg03259.html
Alexis Hildebrandt 6 年之前
父节点
当前提交
8e1cfc9154
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      themes/emotty.zsh-theme

+ 4 - 0
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