X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/f374674caa59a56f33b17935d13d88fd6c709203..4543696d79717c18a7648679f21984e297e1d7aa:/bash_profile diff --git a/bash_profile b/bash_profile index 64a85f1..70d7606 100644 --- a/bash_profile +++ b/bash_profile @@ -101,7 +101,16 @@ umask 002 unset LANG -export EDITOR="emacs -nw"; export VISUAL="$EDITOR" +export EDITOR=ed +for ed in "emacs21 -nw" "emacs -nw" vi pico nano ae; do + name=`echo $ed | sed 's/ .*$//'` + if type -t >/dev/null "$name"; then + EDITOR=$ed + break + fi +done +export VISUAL="$EDITOR" + export TEXINPUTS=".:$HOME/lib/tex//:" __mdw_addto INFOPATH r $HOME/info /usr/info /usr/share/info /usr/local/info @@ -110,8 +119,6 @@ __mdw_addto PYTHONPATH r $HOME/lib/python [ -z "$LS_OPTIONS" ] && export LS_OPTIONS="-F" -export RMBKP="-abc +q -i" - export BASCAT="-l +n" export CVS_RSH=ssh @@ -132,7 +139,7 @@ export LESS="-iqgRh1" export LESSOPEN="|lesspipe.sh %s" export LESSCHARSET=latin1 # export MAKEFLAGS="-j4" -[ "$TMPDIR"] || eval `tmpdir -b` +[ "$TMPDIR" ] || eval `tmpdir -b` export TMP=$TMPDIR export PERL_READLINE_NOWARN=yes