mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
don't override a user's precmd function
This commit is contained in:
parent
08457b10b9
commit
740d547dfd
1 changed files with 5 additions and 1 deletions
|
|
@ -6,8 +6,12 @@
|
||||||
#
|
#
|
||||||
# http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#IDX2133
|
# http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#IDX2133
|
||||||
#
|
#
|
||||||
|
|
||||||
|
typeset -ga precmd_functions
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
|
|
||||||
precmd() {
|
zsh_vcsinfo_precmd() {
|
||||||
vcs_info
|
vcs_info
|
||||||
}
|
}
|
||||||
|
|
||||||
|
precmd_functions+='zsh_vcsinfo_precmd'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue