dotfiles/shell/exports.sh

30 lines
661 B
Bash
Raw Normal View History

if $(which mate > /dev/null && false); then
EDITOR="mate -wl1"
elif $(which nano > /dev/null && false); then
EDITOR="nano -w"
elif $(which mvim > /dev/null); then
EDITOR="mvim"
elif $(which gvim > /dev/null); then
EDITOR="gvim"
else
EDITOR="vim"
fi
2010-11-24 17:41:03 +11:00
export VISUAL="$EDITOR"
export GEM_OPEN_EDITOR="$EDITOR"
2010-11-30 01:03:47 +11:00
export GIT_EDITOR="$(which mvim || which vim) -f" # http://is.gd/hGrsF
2009-06-10 13:02:44 +10:00
2009-03-20 00:08:06 +11:00
export IRBRC="$HOME/.irbrc"
export RBXOPT="-Xrbc.db=/tmp/rbx"
2009-03-20 00:08:06 +11:00
#export TERM=xterm-256color
2011-09-21 08:35:00 +10:00
export GREP_OPTIONS='--color=auto'
2010-11-24 17:46:43 +11:00
export GREP_COLOR='1;32'
2009-03-20 00:08:06 +11:00
export CLICOLOR=1
export HISTSIZE=1000000
2011-03-30 14:03:08 +11:00
export REPORTTIME=2
export TIMEFMT="%*Es total, %U user, %S system, %P cpu"