feat: only cd to the path if it is not empty

This commit is contained in:
marcelarie 2024-10-08 19:49:30 +02:00
parent bc61a463e5
commit 7ae248300c
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ def --env --wrapped __zoxide_z [...rest:string] {
""
})
}
cd $path
if $path != "" {
cd $path
}
{%- if echo %}
echo $env.PWD
{%- endif %}