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:
parent
044d6336e8
commit
de1031a7d4
1 changed files with 6 additions and 2 deletions
|
@ -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
|
# # on macOS though, make sure to use /usr/bin/infocmp to probe if it's availalbe system wide
|
||||||
# case "$uname_s" in
|
# case "$uname_s" in
|
||||||
# *Darwin*)
|
# *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
|
# esac
|
||||||
# }
|
# }
|
||||||
|
|
Loading…
Reference in a new issue