2010-11-24 17:38:02 +11:00
|
|
|
if $(which mate > /dev/null && false); then
|
2010-11-22 23:28:49 +11:00
|
|
|
EDITOR="mate -wl1"
|
2010-11-24 17:38:02 +11:00
|
|
|
elif $(which nano > /dev/null && false); then
|
2010-11-22 23:28:49 +11:00
|
|
|
EDITOR="nano -w"
|
2010-11-23 01:04:20 +11:00
|
|
|
elif $(which mvim > /dev/null); then
|
2010-11-22 23:28:49 +11:00
|
|
|
EDITOR="mvim"
|
2010-11-23 01:04:20 +11:00
|
|
|
elif $(which gvim > /dev/null); then
|
2010-11-22 23:28:49 +11:00
|
|
|
EDITOR="gvim"
|
|
|
|
else
|
|
|
|
EDITOR="vim"
|
|
|
|
fi
|
2009-04-26 16:55:34 +10:00
|
|
|
|
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"
|
|
|
|
|
2011-01-15 16:32:50 +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
|
|
|
|
|
2009-04-26 16:55:34 +10:00
|
|
|
export HISTSIZE=1000000
|
2011-03-30 14:03:08 +11:00
|
|
|
|
|
|
|
export REPORTTIME=2
|
|
|
|
export TIMEFMT="%*Es total, %U user, %S system, %P cpu"
|
|
|
|
|