Check screen & tmux.

This commit is contained in:
Gea-Suan Lin
2015-02-16 22:26:09 +08:00
parent 52f1a54740
commit 63cd18da82
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ function http11()
} }
# #
# Hack for gnome-terminal # Hack for gnome-terminal
if [ "$COLORTERM" == "gnome-terminal" ]; then if [ "$COLORTERM" == "gnome-terminal" -a -z "$TMUX" -a -z "$SCREEN" ]; then
export TERM=xterm-256color export TERM=xterm-256color
fi fi
# #

2
.zshrc
View File

@@ -28,7 +28,7 @@ if [[ -x /usr/bin/xdg-open ]]; then
fi fi
# #
# Hack for gnome-terminal # Hack for gnome-terminal
if [[ "$COLORTERM" == "gnome-terminal" ]]; then if [[ "$COLORTERM" == "gnome-terminal" && -z "$TMUX" && -z "$WINDOW" ]]; then
export TERM=xterm-256color export TERM=xterm-256color
fi fi
# #