mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-24 15:48:24 +00:00
Nushell should only call hook within filesystem (#202)
This commit is contained in:
parent
ef63b555a0
commit
650732c82c
@ -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…
x
Reference in New Issue
Block a user