From b98911a22702f6dbe4d4f980905aeec890404be8 Mon Sep 17 00:00:00 2001 From: Rastislav Barlik Date: Wed, 31 Jul 2019 14:45:15 +0100 Subject: [PATCH] Setting zsh-hooks to be unique is not necessary --- z.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/z.lua b/z.lua index 18cf50a..9a52593 100755 --- a/z.lua +++ b/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 }