Fix the DTerm tput error.

This commit is contained in:
Jack 2014-05-12 08:47:46 +08:00
commit 3f67c3de7c

View file

@ -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