feat: only cd to the path if it is not empty
This commit is contained in:
parent
bc61a463e5
commit
7ae248300c
|
|
@ -51,7 +51,10 @@ def --env --wrapped __zoxide_z [...rest:string] {
|
|||
""
|
||||
})
|
||||
}
|
||||
cd $path
|
||||
|
||||
if $path != "" {
|
||||
cd $path
|
||||
}
|
||||
{%- if echo %}
|
||||
echo $env.PWD
|
||||
{%- endif %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue