diff --git a/templates/fish.txt b/templates/fish.txt index 1aa8cb5..7ec343d 100644 --- a/templates/fish.txt +++ b/templates/fish.txt @@ -48,7 +48,8 @@ if test "$__zoxide_hooked" != 1 {%- when InitHook::Pwd %} function __zoxide_hook --on-variable PWD {%- endmatch %} - command zoxide add -- (__zoxide_pwd) + set -q fish_private_mode + or command zoxide add -- (__zoxide_pwd) end end