Nushell should only call hook within filesystem

This commit is contained in:
Ajeet D'Souza 2021-05-04 01:14:14 +05:30
parent 297908e950
commit 0d1a9e4df8
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def __zoxide_hook [] {}
{%- when Hook::Prompt %} {%- when Hook::Prompt %}
def __zoxide_hook [] { def __zoxide_hook [] {
zoxide add -- $(pwd) shells | where active == $true && name == filesystem | get path | each { zoxide add -- $it }
} }
{%- when Hook::Pwd %} {%- when Hook::Pwd %}