mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
change name of overriden zle-line-init
This commit is contained in:
@@ -18,10 +18,10 @@ function git-auto-fetch {
|
|||||||
echo "${fg_bold[red]}disabled${reset_color}")
|
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 () {
|
function zle-line-init () {
|
||||||
git-fetch-all
|
git-fetch-all
|
||||||
original-zle-line-init
|
override-git-auto-fetch-zle-line-init
|
||||||
}
|
}
|
||||||
zle -N zle-line-init
|
zle -N zle-line-init
|
||||||
|
|||||||
Reference in New Issue
Block a user