mirror of
https://github.com/Hopiu/zoxide.git
synced 2026-04-23 00:04:43 +00:00
Nushell should only call hook within filesystem (#202)
This commit is contained in:
parent
ef63b555a0
commit
650732c82c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue