From 0d1a9e4df81cdc9165393e1f214e5cb8f3c9ba10 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Tue, 4 May 2021 01:14:14 +0530 Subject: [PATCH] Nushell should only call hook within filesystem --- 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 %}