Skip to content

Commit

Permalink
Fix handling of directories that look like flags in fish (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
schuelermine authored Mar 16, 2024
1 parent 73a2eca commit 88d494f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/fish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function __zoxide_z
__zoxide_cd -
else if test $argc -eq 1 -a -d $argv[1]
__zoxide_cd $argv[1]
else if set -l result (string replace --regex $__zoxide_z_prefix_regex '' $argv[-1]); and test -n $result
else if set -l result (string replace --regex -- $__zoxide_z_prefix_regex '' $argv[-1]); and test -n $result
__zoxide_cd $result
else
set -l result (command zoxide query --exclude (__zoxide_pwd) -- $argv)
Expand Down

0 comments on commit 88d494f

Please sign in to comment.