From 1b316c4493d135fbd46e577df53dac58a273c0ec Mon Sep 17 00:00:00 2001 From: Lisa FS Date: Wed, 2 Apr 2025 19:32:53 -0600 Subject: [PATCH] Update nushell.txt 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" }