From 537b276d74968a72811f0779979b4e78fc7f4777 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Wed, 22 Feb 2023 10:41:30 +0100 Subject: [PATCH] make sure to use /usr/bin/infocmp to probe if tmux-256color is available system wide (5), fixes #626 bail out if default-terminal is already globally set to tmux-256color or tmux-direct --- .tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index bf97827..c1ce1df 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -690,6 +690,12 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # } # # _apply_tmux_256color() { +# case "$(tmux show -gv default-terminal)" in +# tmux-256color|tmux-direct) +# return +# ;; +# esac +# # # when tmux-256color is available, use it # # on macOS though, make sure to use /usr/bin/infocmp to probe if it's availalbe system wide # case "$_uname_s" in