Skip to content

Commit

Permalink
theme.nu: fix failure on empty theme
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 8, 2023
1 parent 936b107 commit 9eb7704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/theme.nu
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
# }
# instead do it manually

if 'DOROTHY_THEME_OVERRIDE' in $env {
if 'DOROTHY_THEME_OVERRIDE' in $env and $env.DOROTHY_THEME_OVERRIDE != '' {
$env.DOROTHY_THEME = $env.DOROTHY_THEME_OVERRIDE
}

if 'DOROTHY_THEME' in $env {
if 'DOROTHY_THEME' in $env and $env.DOROTHY_THEME != '' {
if $env.DOROTHY_THEME == 'oz' {
source ../themes/oz.nu
} else if $env.DOROTHY_THEME == 'starship' {
Expand Down

0 comments on commit 9eb7704

Please sign in to comment.