reset color definitions before loading a new theme

This commit is contained in:
fatalerrors
2026-04-15 15:16:11 +02:00
parent 1b16878ea8
commit dfad345be3
2 changed files with 76 additions and 68 deletions

View File

@@ -198,6 +198,9 @@ set_theme()
# -- apply mode ----------------------------------------------------------
local theme_name="$1"
# Reset colours to defaults before loading the new theme
set_colors
load_theme "$theme_name" || return 1
export PROMPT_THEME="$theme_name"