1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-06-15 18:48:51 +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
+2 -2
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
}