diff --git a/templates/fish.txt b/templates/fish.txt index 1aa8cb5..6cae56a 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) + test -z "$fish_private_mode" + and command zoxide add -- (__zoxide_pwd) end end