feat: when theme enabled and not set it default to dark256
This commit is contained in:
parent
26522d4901
commit
0f19833001
3 changed files with 21 additions and 5 deletions
|
@ -18,9 +18,24 @@ get_theme() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
local theme
|
local _theme _path
|
||||||
theme=$(get_theme "$THEME_OPTION" "$DEFAULT_THEME")
|
_theme=$(get_theme "$THEME_OPTION" "$DEFAULT_THEME")
|
||||||
tmux source-file "$CURRENT_DIR/tmux-gruvbox-${theme}.conf"
|
case "$_theme" in
|
||||||
|
light-transparent)
|
||||||
|
_theme="light-transparent"
|
||||||
|
;;
|
||||||
|
dark-transparent)
|
||||||
|
_theme="dark-transparent"
|
||||||
|
;;
|
||||||
|
light | light256)
|
||||||
|
_theme="light"
|
||||||
|
;;
|
||||||
|
dark | dark256 | *)
|
||||||
|
_theme="dark"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
tmux source-file "${CURRENT_DIR}/tmux-gruvbox-${_theme}.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
|
@ -12,6 +12,7 @@ main() {
|
||||||
printf "\n=============================================="
|
printf "\n=============================================="
|
||||||
printf "\n %s" "$test"
|
printf "\n %s" "$test"
|
||||||
printf "\n=============================================="
|
printf "\n=============================================="
|
||||||
|
printf ""
|
||||||
bash -c "$test"
|
bash -c "$test"
|
||||||
|
|
||||||
# run all and count failures
|
# run all and count failures
|
||||||
|
|
|
@ -28,8 +28,8 @@ helper_print_fail() {
|
||||||
local _current_val="${2}"
|
local _current_val="${2}"
|
||||||
local _expected_val="${3}"
|
local _expected_val="${3}"
|
||||||
printf "FAIL. %s\n" "${_msg}"
|
printf "FAIL. %s\n" "${_msg}"
|
||||||
printf "current value:\t%s" "$_current_val"
|
printf "current value:\t%s\n" "$_current_val"
|
||||||
printf "expected value:\t%s" "$_expected_val"
|
printf "expected value:\t%s\n" "$_expected_val"
|
||||||
}
|
}
|
||||||
|
|
||||||
helper_print_success() {
|
helper_print_success() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue