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:
4
z.lua
4
z.lua
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user