handle empty keybindings list for nushell (#1270)

fixes #1189

Co-authored-by: Daniel Carosone <dan@geek.com.au>
This commit is contained in:
Daniel Carosone 2023-09-30 02:06:24 +10:00 committed by GitHub
parent 504400673f
commit a195c389b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,3 +46,5 @@ $env.config = (
$env.config.hooks | get -i pre_prompt | default [] | append $_atuin_pre_prompt) $env.config.hooks | get -i pre_prompt | default [] | append $_atuin_pre_prompt)
) )
) )
$env.config = ($env.config | default [] keybindings)