diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-11-26 19:57:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 19:57:52 +0100 |
commit | e780209c33883d0ecab39dd50663e2e1424250c9 (patch) | |
tree | 6f0bd4021c92787fc3d795c6d4bf2374ef4e218c /plugins/tmux | |
parent | e8aba1bf5912f89f408eaebd1bc74c25ba32a62c (diff) | |
download | zsh-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.zsh | 2 |
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 |