mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-29 07:53:55 +00:00
Nushell: use new lambda syntax
This commit is contained in:
parent
fa1cfb490d
commit
4f475a75cb
@ -18,7 +18,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
|
|||||||
let-env config = ($env | default {} config).config
|
let-env config = ($env | default {} config).config
|
||||||
let-env config = ($env.config | default {} hooks)
|
let-env config = ($env.config | default {} hooks)
|
||||||
let-env config = ($env.config | update hooks ($env.config.hooks | default [] pre_prompt))
|
let-env config = ($env.config | update hooks ($env.config.hooks | default [] pre_prompt))
|
||||||
let-env config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append {
|
let-env config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append { ||
|
||||||
zoxide add -- $env.PWD
|
zoxide add -- $env.PWD
|
||||||
}))
|
}))
|
||||||
{%- else if hook == InitHook::Pwd %}
|
{%- else if hook == InitHook::Pwd %}
|
||||||
|
Loading…
Reference in New Issue
Block a user