1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:50:09 +00:00

change name of overriden zle-line-init

This commit is contained in:
slavaGanzin 2017-02-07 15:44:12 +02:00
parent a90527b46d
commit d2dfa69419

View file

@ -18,10 +18,10 @@ function git-auto-fetch {
echo "${fg_bold[red]}disabled${reset_color}")
}
eval "original-$(declare -f zle-line-init)"
eval "override-git-auto-fetch-$(declare -f zle-line-init)"
function zle-line-init () {
git-fetch-all
original-zle-line-init
override-git-auto-fetch-zle-line-init
}
zle -N zle-line-init