From e661c0a280a0c72123304a28ef63587293a3fb0e Mon Sep 17 00:00:00 2001 From: chenyc Date: Thu, 8 Dec 2022 17:46:45 +0800 Subject: [PATCH] =?UTF-8?q?hook=E9=BB=98=E8=AE=A4=E4=B8=8D=E5=90=AF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/hook.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hook.zsh b/config/hook.zsh index 0566472..7c21af2 100644 --- a/config/hook.zsh +++ b/config/hook.zsh @@ -12,5 +12,5 @@ _apply_chpwd_hook() { [ -d "$currentdir" ] && cd $currentdir } -[ "$_OMZ_APPLY_PREEXEC_HOOK" == "true" ] && _apply_preexec_hook -[ "$_OMZ_APPLY_CHPWD_HOOK" == "true" ] && _apply_chpwd_hook +[ "$_OMZ_APPLY_PREEXEC_HOOK" = "true" ] && _apply_preexec_hook +[ "$_OMZ_APPLY_CHPWD_HOOK" = "true" ] && _apply_chpwd_hook