Permalink
Browse files

Config different TERMs for tmux and cygwin.

  • Loading branch information...
1 parent 65009ff commit c6155e0358dfa345d71ff1314ada0349bc5c6cf7 @winfred-lu committed Aug 31, 2013
Showing with 11 additions and 2 deletions.
  1. +11 −2 zshrc
View
13 zshrc
@@ -63,10 +63,19 @@ export LESS="-FRX"
export GREP_OPTIONS="-I --color=auto --exclude=tags --exclude=TAGS --exclude=cscope.\*"
case $TTY in
/dev/pts*)
- export TERM=rxvt-unicode-256color
+ if [[ -n $TMUX ]]; then
+ export TERM=screen-256color-bce
+ else
+ export TERM=rxvt-unicode-256color
+ fi
;;
*)
- export TERM=xterm-256color
+ uname=`uname`
+ if [[ $uname[1,6] = "CYGWIN" ]]; then
+ export TERM=rxvt-256color
+ else
+ export TERM=xterm-256color
+ fi
;;
esac

0 comments on commit c6155e0

Please sign in to comment.