mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
Fix emotty theme when using zsh 5.2 (#5998)
see http://www.zsh.org/mla/workers/2015/msg03259.html
This commit is contained in:
committed by
Marc Cornellà
parent
30a5124f9d
commit
8e1cfc9154
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user