diff --git a/templates/nushell.txt b/templates/nushell.txt index 67285f7b..3ab49cef 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -60,7 +60,7 @@ def --env --wrapped __zoxide_z [...rest: string] { let path = match $rest { [] => {'~'}, [ '-' ] => {'-'}, - [ $arg ] if ($arg | path type) == 'dir' => {$arg} + [ $arg ] if ($arg | path expand | path type) == 'dir' => {$arg} _ => { zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n" }