diff options
| -rw-r--r-- | dot-config/fish/conf.d/__zoxide.fish | 4 |
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 |
