nushell: fix jumping to symlinks that are not in the database (#1032)

Expand path before checking for its type. This solves the issue of ignoring symlinks.
This commit is contained in:
Lisa FS 2025-04-13 07:46:27 -06:00 committed by GitHub
parent 6902d375c5
commit 7691d7e9a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}