fix help and spellcheck

This commit is contained in:
fatalerrors
2026-05-21 16:12:34 +02:00
parent 8b1fc5f01c
commit d03ced93bf

View File

@@ -293,8 +293,8 @@ set_theme()
printf "Options:\n" printf "Options:\n"
printf "\t-h, --help\tDisplay this help screen\n" printf "\t-h, --help\tDisplay this help screen\n"
printf "\t-l, --list\tList available themes (default when no argument is given)\n" printf "\t-l, --list\tList available themes (default when no argument is given)\n"
printf "\t-p, --preview\tPreview a theme without applying it\n\n" printf "\t-p, --preview\tPreview a theme without applying it\n"
printf "\t-S, --save\tSave theme to configuration ([prompt] PROMPT_THEME)\n\n" printf "\t-S, --save\tSave theme to configuration\n\n"
printf "Arguments:\n" printf "Arguments:\n"
printf "\ttheme \tBare theme name (e.g. 'dark') or an explicit path to a .theme file.\n" printf "\ttheme \tBare theme name (e.g. 'dark') or an explicit path to a .theme file.\n"
printf "\t \tThemes are searched in: %s\n" "$theme_dir" printf "\t \tThemes are searched in: %s\n" "$theme_dir"
@@ -420,7 +420,7 @@ set_theme()
export PROMPT_THEME="$old_theme" export PROMPT_THEME="$old_theme"
fi fi
for _v in "${old_prompt_color_vars[@]}"; do for _v in "${old_prompt_color_vars[@]}"; do
export "$_v" export "${_v%%=*}=${_v#*=}"
done done
return 0 return 0
fi fi