Be more spec compliant

This commit is contained in:
Kid 2021-05-15 13:29:56 +08:00 committed by GitHub
parent d44bb27abe
commit ccc4321a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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