fixup! fixup! fixup! Fix `cd`ing home when no matching directory in `fish`
This commit is contained in:
parent
59f2a68d8d
commit
a63723e7a7
|
|
@ -160,11 +160,15 @@ function {}
|
|||
or return $status
|
||||
|
||||
else
|
||||
# FIXME: use string-collect from fish 3.1.0 once it has wider adoption
|
||||
set -l IFS ''
|
||||
set -l result (zoxide query $argv)
|
||||
|
||||
if begin; test -d $result; and string length -q -- $result; end
|
||||
if test -d $result; and string length -q -- $result
|
||||
_z_cd $result
|
||||
or return $status
|
||||
else if test -n "$result"
|
||||
echo $result
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue