Use == instead of eq
This commit is contained in:
parent
846f5d9e57
commit
e83475181e
|
|
@ -49,7 +49,7 @@ fn __zoxide_z [@rest]{
|
||||||
__zoxide_cd ~
|
__zoxide_cd ~
|
||||||
} elif (builtin:eq [-] $rest) {
|
} elif (builtin:eq [-] $rest) {
|
||||||
__zoxide_cd (builtin:get-env __zoxide_oldpwd)
|
__zoxide_cd (builtin:get-env __zoxide_oldpwd)
|
||||||
} elif (and (builtin:eq (builtin:count $rest) 1) (path:is-dir &follow-symlink=$true $rest[0])) {
|
} elif (and ('builtin:==' (builtin:count $rest) 1) (path:is-dir &follow-symlink=$true $rest[0])) {
|
||||||
__zoxide_cd $rest[0]
|
__zoxide_cd $rest[0]
|
||||||
} else {
|
} else {
|
||||||
__zoxide_cd (zoxide query --exclude $pwd -- $@rest)
|
__zoxide_cd (zoxide query --exclude $pwd -- $@rest)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue