From 14a9f0e6bc3b5ef2c1b6aaa8dcb5512e973e654d Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Tue, 10 Nov 2015 19:48:08 -0800 Subject: [PATCH] Modify zshrc to alias xterm based on OS, since emacs seems to not need xterm-256color to use 256 colors by default in linux --- dotfiles/zshrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index bb89c41..e19fb6e 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -4,9 +4,16 @@ export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export VISUAL=vim export EDITOR="$VISUAL" -export TERM=xterm-256color export ITERM_24BIT=1 +if [[ `uname` == 'Linux' ]] +then + export TERM=xterm +else + export TERM=xterm-256color +fi + +alias emacs='emacs -nw' alias irssi='TERM=screen-256color irssi' alias scheme='rlwrap mit-scheme'