From e26f530273bb43c667b586d3c92fc7ffba4d0c99 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 18 Oct 2025 13:26:20 +0800 Subject: fixup! --- dot-config/fish/conf.d/__zoxide.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot-config/fish/conf.d/__zoxide.fish b/dot-config/fish/conf.d/__zoxide.fish index 8cbff6b9..ff368077 100644 --- a/dot-config/fish/conf.d/__zoxide.fish +++ b/dot-config/fish/conf.d/__zoxide.fish @@ -8,7 +8,7 @@ zoxide init fish --cmd cd | source # if __fish_complete_directories "$tokens[2..-1]" '' | read -lz __out # echo $__out # else -# command zoxide query --exclude (__zoxide_pwd) -- $tokens[2..-1] 2>/dev/null | string replace -a -- (__zoxide_pwd)/ '' | string split0 | string join / +command zoxide query --exclude (__zoxide_pwd) -- $tokens[2..-1] 2>/dev/null | string replace -a -- (__zoxide_pwd)/ '' | string replace -a -- $HOME '~' | string split0 | string join / # end # end @@ -17,7 +17,7 @@ function __zoxide_complete set -l token (commandline --cut-at-cursor --current-process --tokenize) __fish_complete_directories "$tokens[2..-1]" '' - command zoxide query --exclude (__zoxide_pwd) -- $tokens[2..-1] 2>/dev/null | string replace -a -- (__zoxide_pwd)/ '' | string split0 | string join / + command zoxide query --exclude (__zoxide_pwd) -- $tokens[2..-1] 2>/dev/null | string replace -a -- (__zoxide_pwd)/ '' | string replace -a -- $HOME '~' | string split0 | string join / end complete --erase --command __zoxide_z -- cgit v1.2.3