summaryrefslogtreecommitdiff
path: root/plugins/tmux
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-11-26 19:57:52 +0100
committerGitHub <noreply@github.com>2018-11-26 19:57:52 +0100
commite780209c33883d0ecab39dd50663e2e1424250c9 (patch)
tree6f0bd4021c92787fc3d795c6d4bf2374ef4e218c /plugins/tmux
parente8aba1bf5912f89f408eaebd1bc74c25ba32a62c (diff)
downloadzsh-e780209c33883d0ecab39dd50663e2e1424250c9.tar.gz
zsh-e780209c33883d0ecab39dd50663e2e1424250c9.tar.bz2
zsh-e780209c33883d0ecab39dd50663e2e1424250c9.zip
tmux: use $terminfo to avoid echoti errors
See https://github.com/robbyrussell/oh-my-zsh/issues/7407#issuecomment-441665143
Diffstat (limited to 'plugins/tmux')
-rw-r--r--plugins/tmux/tmux.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 64687641c..2f3c3e79d 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 [[ $(echoti colors) == 256 ]]; then
+if [[ $terminfo[colors] == 256 ]]; then
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
else
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR