From f9f1db8f304059acdafdd85a2e51847d946a55f3 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Sun, 8 Mar 2020 21:00:25 -0700 Subject: [PATCH] fix(zsh): append `_zoxide_precmd` as a single-element array to hook (#10) We should append `_zoxide_precmd` to `precmd_functions` within an array literal, not by itself. --- zoxide.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zoxide.plugin.zsh b/zoxide.plugin.zsh index ef25c32..ee1678c 100644 --- a/zoxide.plugin.zsh +++ b/zoxide.plugin.zsh @@ -5,7 +5,7 @@ _zoxide_precmd() { } [[ -n "${precmd_functions[(r)_zoxide_precmd]}" ]] || { - precmd_functions+=_zoxide_precmd + precmd_functions+=(_zoxide_precmd) } z() {