From 769ab7ed7c533b84110945df2aaf2c5f631b8a6b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 9 Apr 2014 13:29:07 -0700 Subject: [PATCH] Add terminal info that allows emacs to use full color spectrum. --- dotfiles/lib/shellrc/exports.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/lib/shellrc/exports.sh b/dotfiles/lib/shellrc/exports.sh index 9cec965b..a2910f43 100644 --- a/dotfiles/lib/shellrc/exports.sh +++ b/dotfiles/lib/shellrc/exports.sh @@ -1,3 +1,8 @@ +if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then + export TERM=gnome-256color +elif infocmp xterm-256color >/dev/null 2>&1; then + export TERM=xterm-256color +fi # Make emacs the default editor. export EDITOR="emacsclient" export ALTERNATE_EDITOR=""