mirror of
1
0
Fork 0

make sure to use /usr/bin/infocmp to probe if tmux-256color is available system wide (3), fixes #618

infocmp may not exist or may return a non 0 exit status which would abort _apply_configuration()
because of set -e
This commit is contained in:
Gregory Pakosz 2023-01-23 16:11:34 +01:00
parent 044d6336e8
commit de1031a7d4
1 changed files with 6 additions and 2 deletions

View File

@ -694,10 +694,14 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# # on macOS though, make sure to use /usr/bin/infocmp to probe if it's availalbe system wide
# case "$uname_s" in
# *Darwin*)
# /usr/bin/infocmp -x tmux-256color > /dev/null 2>&1 && tmux set -g default-terminal 'tmux-256color'
# if /usr/bin/infocmp -x tmux-256color > /dev/null 2>&1; then
# tmux set -g default-terminal 'tmux-256color'
# fi
# ;;
# *)
# command infocmp -x tmux-256color > /dev/null 2>&1 && tmux set -g default-terminal 'tmux-256color'
# if command infocmp -x tmux-256color > /dev/null 2>&1; then
# tmux set -g default-terminal 'tmux-256color'
# fi
# ;;
# esac
# }