fix(nu): validate config field before manipulation

resolves #5230
This commit is contained in:
Jan De Dobbeleer 2024-07-09 07:36:10 +02:00 committed by Jan De Dobbeleer
parent d5ec96fef0
commit 4d3fe566e8

View file

@ -1,4 +1,7 @@
$env.config = ($env.config | upsert render_right_prompt_on_last_line true)
# make sure we have the right prompt render correctly
if ($env.config? | is-not-empty) {
$env.config = ($env.config | upsert render_right_prompt_on_last_line true)
}
$env.POWERLINE_COMMAND = 'oh-my-posh'
$env.POSH_THEME = ::CONFIG::