Skip to content

Commit

Permalink
fix(nu): validate config field before manipulation
Browse files Browse the repository at this point in the history
resolves #5230
  • Loading branch information
JanDeDobbeleer committed Jul 9, 2024
1 parent d5ec96f commit 4c95ecd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shell/scripts/omp.nu
Original file line number Diff line number Diff line change
@@ -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::
Expand Down

0 comments on commit 4c95ecd

Please sign in to comment.