From 63cd18da82947381032132cf085777b94dbe1d36 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 16 Feb 2015 22:26:09 +0800 Subject: [PATCH] Check screen & tmux. --- .bashrc | 2 +- .zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 60b4910..ac92be9 100644 --- a/.bashrc +++ b/.bashrc @@ -49,7 +49,7 @@ function http11() } # # Hack for gnome-terminal -if [ "$COLORTERM" == "gnome-terminal" ]; then +if [ "$COLORTERM" == "gnome-terminal" -a -z "$TMUX" -a -z "$SCREEN" ]; then export TERM=xterm-256color fi # diff --git a/.zshrc b/.zshrc index 0824484..98e51fe 100644 --- a/.zshrc +++ b/.zshrc @@ -28,7 +28,7 @@ if [[ -x /usr/bin/xdg-open ]]; then fi # # Hack for gnome-terminal -if [[ "$COLORTERM" == "gnome-terminal" ]]; then +if [[ "$COLORTERM" == "gnome-terminal" && -z "$TMUX" && -z "$WINDOW" ]]; then export TERM=xterm-256color fi #