From 3f67c3de7c44d58d81e6c84441599afb97ee0116 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 12 May 2014 08:47:46 +0800 Subject: [PATCH] Fix the DTerm tput error. --- plugins/tmux/tmux.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 626c41f3d..c57a226b7 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -38,7 +38,7 @@ if which tmux &> /dev/null local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)" # Determine if the terminal supports 256 colors - if [[ `tput colors` == "256" ]] + if [[ `tty -s && tput colors` == "256" ]] then export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR else