Nushell should only call hook within filesystem (#202)

This commit is contained in:
Ajeet D'Souza 2021-05-04 02:39:30 +05:30 committed by GitHub
parent ef63b555a0
commit 650732c82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}