summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-10-18 13:26:20 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-10-18 13:26:20 +0800
commite26f530273bb43c667b586d3c92fc7ffba4d0c99 (patch)
treeb4608d7c01caeff892145c5659edb4c6f3ab87f4
parentcace1a3700c551f1cd0b9a47bf4ab865272b3242 (diff)
fixup!
-rw-r--r--dot-config/fish/conf.d/__zoxide.fish4
1 files 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