summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-10-09 20:46:23 +0100
committerPatrick Simianer <p@simianer.de>2014-10-09 20:46:23 +0100
commit62fd475b2026919f8705e6e45a39408448e78134 (patch)
treea3b743330566302b751fbd3b14266078704cb352
parentace10632b60d783c1089a73e6898b4ec31fab9c3 (diff)
fix bg color in screen/tmux
-rw-r--r--.zshrc15
1 files changed, 11 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index 1233994..38e7784 100644
--- a/.zshrc
+++ b/.zshrc
@@ -48,8 +48,7 @@ export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export GEM_HOME=$HOME/lib/ruby/
export GEM_PATH=$HOME/lib/ruby/:$GEM_PATH
-export TERM=xterm-256color
-export PYTHONPATH=$PYTHONPATH:~/lib/python/
+export PYTHONPATH=$PYTHONPATH:~/lib/python/site-packages
export CFLAGS="-march=native -mtune=native"
export CXXFLAGS="$CFLAGS"
@@ -60,6 +59,14 @@ case $TERM in
;;
esac
+case $TERM in
+ screen-256color)
+ ;;
+ *)
+ TERM=xterm-256color
+ ;;
+esac
+
autoload -U colors && colors
case `hostname` in
2pac)
@@ -93,7 +100,7 @@ case `hostname` in
export PYTHONPATH=$PYTHONPATH:/toolbox/python/lib/python2.7/site-packages
export JAVA_HOME=/usr/lib/jvm/java-6-sun/ # debian systems w/ sun-java6
umask u=rwx,g=rwx,o=rx
- alias tmux="TERM=screen-256color tmux -f ~/.tmux.`hostname`.conf"
+ alias tmux="tmux -f ~/.tmux.`hostname`.conf"
;;
x)
PROMPT="[%~]%{$fg[magenta]%}$B%%%b%{$reset_color%} "
@@ -113,7 +120,7 @@ esac
case `hostname` in
CLuster|node*)
- alias tmux="TERM=screen-256color tmux -f ~/.tmux.CLuster.conf"
+ alias tmux="tmux -f ~/.tmux.CLuster.conf"
;;
esac