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