b1424e289375439eef04254f3817dc3fa4b18a8f
Author Marc Cornellà <marc.cornella@live.com> Committer GitHub <noreply@github.com> Date 2018-11-16 18:40 UTC
Message tmux: use echoti instead of tput for FreeBSD compatibility
Fixes #7407
FreeBSD's tput needs termcap codes instead of terminfo capnames, so using `tput colors`
has the wrong effect. See #7407
Diff 1 diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
2 index 7ddf42099a42d09220c3cfa633e640fc5c7e91a5..64687641c8f34a818d0216f265c093d266e7c2e0 100644
3 --- a/plugins/tmux/tmux.plugin.zsh
4 +++ b/plugins/tmux/tmux.plugin.zsh
5 @@ -36,7 +36,7 @@ alias tkss='tmux kill-session -t'
6 : ${ZSH_TMUX_FIXTERM_WITH_256COLOR:=screen-256color}
7
8 # Determine if the terminal supports 256 colors
9 -if [[ $(tput colors) == 256 ]]; then
10 +if [[ $(echoti colors) == 256 ]]; then
11 export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
12 else
13 export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR