1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-15 12:19:49 +00:00

Setting zsh-hooks to be unique is not necessary

This commit is contained in:
Rastislav Barlik
2019-07-31 14:45:15 +01:00
parent 0fad96124b
commit b98911a227

4
z.lua
View File

@@ -2056,7 +2056,7 @@ local script_init_zsh = [[
_zlua_precmd() {
(_zlua --add "${PWD:a}" &)
}
typeset -gaU precmd_functions
typeset -ga precmd_functions
[ -n "${precmd_functions[(r)_zlua_precmd]}" ] || {
precmd_functions[$(($#precmd_functions+1))]=_zlua_precmd
}
@@ -2066,7 +2066,7 @@ local script_init_zsh_once = [[
_zlua_precmd() {
(_zlua --add "${PWD:a}" &)
}
typeset -gaU chpwd_functions
typeset -ga chpwd_functions
[ -n "${chpwd_functions[(r)_zlua_precmd]}" ] || {
chpwd_functions[$(($#chpwd_functions+1))]=_zlua_precmd
}