Update nushell.txt
Expand path before checking for its type. This solves the issue of ignoring symlinks.
This commit is contained in:
parent
e1e2f41ecb
commit
1b316c4493
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue