From e2e6df18aec5d359dcd4692caa3f230de51a5668 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Tue, 23 Nov 2010 00:04:20 +1000 Subject: [PATCH] Fixed editors jumping into focus when new shell was created --- shell/exports.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/exports.sh b/shell/exports.sh index a9db00d..f7b1dd6 100644 --- a/shell/exports.sh +++ b/shell/exports.sh @@ -1,10 +1,10 @@ -if $(which mate); then +if $(which mate > /dev/null); then EDITOR="mate -wl1" -elif $(which nano); then +elif $(which nano > /dev/null); then EDITOR="nano -w" -elif $(which mvim); then +elif $(which mvim > /dev/null); then EDITOR="mvim" -elif $(which gvim); then +elif $(which gvim > /dev/null); then EDITOR="gvim" else EDITOR="vim" @@ -17,7 +17,7 @@ export VISUAL=$EDITOR export IRBRC="$HOME/.irbrc" export JEWELER_OPTS="--rspec --gemcutter --rubyforge --reek --roodi" -export TERM=xterm-color +export TERM=xterm-256color export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' export CLICOLOR=1