added RGB 24-bit colour support automatic detection
This commit is contained in:
parent
6242e4974f
commit
f1cc46812b
2 changed files with 21 additions and 4 deletions
16
.tmux.conf
16
.tmux.conf
|
@ -712,9 +712,21 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# _apply_overrides() {
|
# _apply_overrides() {
|
||||||
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-false}
|
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-auto}
|
||||||
# tmux_conf_24b_colour=${tmux_conf_24b_colour:-$tmux_conf_theme_24b_colour}
|
# tmux_conf_24b_colour=${tmux_conf_24b_colour:-$tmux_conf_theme_24b_colour}
|
||||||
# if _is_enabled "$tmux_conf_24b_colour"; then
|
# if [ x"$tmux_conf_24b_colour" = x"auto" ]; then
|
||||||
|
# case "$COLORTERM" in
|
||||||
|
# truecolor|24bit)
|
||||||
|
# apply_overrides=true
|
||||||
|
# ;;
|
||||||
|
# esac
|
||||||
|
# if [ x"$apply_overrides" = x"" ] && [ x"$(tput colors)" = x"16777216" ]; then
|
||||||
|
# apply_overrides=true
|
||||||
|
# fi
|
||||||
|
# elif _is_enabled "$tmux_conf_24b_colour"; then
|
||||||
|
# apply_overrides=true
|
||||||
|
# fi
|
||||||
|
# if [ x"$apply_overrides" = x"true" ]; then
|
||||||
# case "$TERM" in
|
# case "$TERM" in
|
||||||
# screen-*|tmux-*)
|
# screen-*|tmux-*)
|
||||||
# ;;
|
# ;;
|
||||||
|
|
|
@ -42,8 +42,13 @@ tmux_conf_new_session_prompt=false
|
||||||
|
|
||||||
# RGB 24-bit colour support (tmux >= 2.2), possible values are:
|
# RGB 24-bit colour support (tmux >= 2.2), possible values are:
|
||||||
# - true
|
# - true
|
||||||
# - false (default)
|
# - false
|
||||||
tmux_conf_24b_colour=false
|
# - auto (default)
|
||||||
|
#
|
||||||
|
# automatic detection relies on the COLORTERM environment variable being defined
|
||||||
|
# to 'truecolor' or '24bit' or '$ tput colors' answering '16777216'
|
||||||
|
# see https://github.com/termstandard/colors
|
||||||
|
tmux_conf_24b_colour=auto
|
||||||
|
|
||||||
# default theme
|
# default theme
|
||||||
tmux_conf_theme_colour_1="#080808" # dark gray
|
tmux_conf_theme_colour_1="#080808" # dark gray
|
||||||
|
|
Loading…
Reference in a new issue