mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2026-08-24 10:14:47 -05:00
Nushell should only call hook within filesystem (#202)
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user