fix: nushell empty hooks (#1138)
Co-authored-by: Andrea Jemmett <1787979+acidghost@users.noreply.github.com>
This commit is contained in:
parent
73da97666f
commit
8b05b15355
1 changed files with 6 additions and 2 deletions
|
@ -35,10 +35,14 @@ def _atuin_search_cmd [...flags: string] {
|
||||||
] | str join "\n"
|
] | str join "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$env.config = ($env | default {} config).config
|
||||||
|
$env.config = ($env.config | default {} hooks)
|
||||||
$env.config = (
|
$env.config = (
|
||||||
$env.config | upsert hooks (
|
$env.config | upsert hooks (
|
||||||
$env.config.hooks
|
$env.config.hooks
|
||||||
| upsert pre_execution ($env.config.hooks.pre_execution | append $_atuin_pre_execution)
|
| upsert pre_execution (
|
||||||
| upsert pre_prompt ($env.config.hooks.pre_prompt | append $_atuin_pre_prompt)
|
$env.config.hooks | get -i pre_execution | default [] | append $_atuin_pre_execution)
|
||||||
|
| upsert pre_prompt (
|
||||||
|
$env.config.hooks | get -i pre_prompt | default [] | append $_atuin_pre_prompt)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue