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 #