From 7691d7e9a53290daf9b6456de379bd31c61fb597 Mon Sep 17 00:00:00 2001 From: Lisa FS Date: Sun, 13 Apr 2025 07:46:27 -0600 Subject: [PATCH] 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. --- templates/nushell.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nushell.txt b/templates/nushell.txt index 67285f7..3ab49ce 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -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" }