From 650732c82cf1016d692892abe3cebf30c14fd01e Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Tue, 4 May 2021 02:39:30 +0530 Subject: [PATCH] Nushell should only call hook within filesystem (#202) --- templates/nushell.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nushell.txt b/templates/nushell.txt index d90b033..f2806d0 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -22,7 +22,7 @@ def __zoxide_hook [] {} {%- when Hook::Prompt %} def __zoxide_hook [] { - zoxide add -- $(pwd) + shells | where active == $true && name == filesystem | get path | each { zoxide add -- $it } } {%- when Hook::Pwd %}