diff --git a/templates/elvish.txt b/templates/elvish.txt index 996a689..6fd413f 100644 --- a/templates/elvish.txt +++ b/templates/elvish.txt @@ -49,7 +49,7 @@ fn __zoxide_z [@rest]{ __zoxide_cd ~ } elif (builtin:eq [-] $rest) { __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] } else { __zoxide_cd (zoxide query --exclude $pwd -- $@rest)