From 85d0fbe6ee282f80082dec4f429b208a5ba0dc3a Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Tue, 18 May 2021 10:21:41 +0800 Subject: [PATCH] Support Fish's private mode (#211) --- templates/fish.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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