diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-11-16 19:40:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-16 19:40:06 +0100 |
commit | b1424e289375439eef04254f3817dc3fa4b18a8f (patch) | |
tree | 7f321cab3754b6bf28f22ee329018f5f249edd53 /plugins/tmux | |
parent | 3d8f2bda599c8c6d160dc448e5ab28aaf2d5e90d (diff) | |
download | zsh-b1424e289375439eef04254f3817dc3fa4b18a8f.tar.gz zsh-b1424e289375439eef04254f3817dc3fa4b18a8f.tar.bz2 zsh-b1424e289375439eef04254f3817dc3fa4b18a8f.zip |
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
Diffstat (limited to 'plugins/tmux')
-rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 7ddf42099..64687641c 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -36,7 +36,7 @@ alias tkss='tmux kill-session -t' : ${ZSH_TMUX_FIXTERM_WITH_256COLOR:=screen-256color} # Determine if the terminal supports 256 colors -if [[ $(tput colors) == 256 ]]; then +if [[ $(echoti colors) == 256 ]]; then export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR else export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR |