diff --git a/z.sh b/z.sh index 7938b5d..1474753 100755 --- a/z.sh +++ b/z.sh @@ -189,7 +189,8 @@ elif compctl &> /dev/null; then _z_zsh_tab_completion() { local compl read -l compl + echo $compl >> $HOME/fffuuu reply=(${(f)"$(_z --complete "$compl")"}) } - compctl -U -K _z_zsh_tab_completion ${_Z_CMD:-z} + compctl -U -K _z_zsh_tab_completion _z fi