diff --git a/templates/nushell.txt b/templates/nushell.txt index 5619a14..2fa3f34 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -51,7 +51,10 @@ def --env --wrapped __zoxide_z [...rest:string] { "" }) } - cd $path + + if $path != "" { + cd $path + } {%- if echo %} echo $env.PWD {%- endif %}