From ccc4321a0b3afd99df6d24d8be755a3c4c067dab Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sat, 15 May 2021 13:29:56 +0800 Subject: [PATCH] Be more spec compliant --- templates/fish.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/fish.txt b/templates/fish.txt index 7ec343d..6cae56a 100644 --- a/templates/fish.txt +++ b/templates/fish.txt @@ -48,8 +48,8 @@ if test "$__zoxide_hooked" != 1 {%- when InitHook::Pwd %} function __zoxide_hook --on-variable PWD {%- endmatch %} - set -q fish_private_mode - or command zoxide add -- (__zoxide_pwd) + test -z "$fish_private_mode" + and command zoxide add -- (__zoxide_pwd) end end