Nushell should only call hook within filesystem
This commit is contained in:
parent
297908e950
commit
0d1a9e4df8
|
|
@ -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 %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue