Zsh prompt: autoload add-zsh-hook early enough
This commit is contained in:
parent
69c528842a
commit
941e420c2d
|
@ -90,13 +90,12 @@ function prompt_tastytea_vcs_async() {
|
|||
}
|
||||
|
||||
prompt_tastytea_vcs_async_start
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook precmd prompt_tastytea_vcs_precmd
|
||||
add-zsh-hook chpwd prompt_tastytea_vcs_chpwd
|
||||
}
|
||||
|
||||
function prompt_tastytea_vcs() {
|
||||
autoload -U vcs_info
|
||||
autoload -U vcs_info add-zsh-hook
|
||||
zmodload zsh/zutil
|
||||
|
||||
zstyle ':vcs_info:*' formats "%F{${prompt_tastytea_colours[vcs]}}(%b)%u%c%f "
|
||||
|
|
Loading…
Reference in New Issue
Block a user