zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

Use `nushell` v0.63 `PWD` hook instead of custom prompt

Open leroycep opened this issue 3 years ago • 1 comments

In v0.63 of nushell, they introduced environment change hooks. This means zoxide can listen for PWD changes directly:

hooks: {
    env_change: {
        PWD: [{|before, after|
            zoxide add $after
        }]
    }
}

leroycep avatar Jul 05 '22 00:07 leroycep

Blocked on https://github.com/nushell/nushell/issues/5951.

ajeetdsouza avatar Jul 05 '22 04:07 ajeetdsouza