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 %}
|
{%- if echo %}
|
||||||
echo $env.PWD
|
echo $env.PWD
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue