X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/9a76b45ed10ba7f9fe89627dca1da0d1ab943d97..8df912e4f47928e29776086741ef57eb067aeb5c:/bash_profile diff --git a/bash_profile b/bash_profile index c290aa9..bc812d6 100644 --- a/bash_profile +++ b/bash_profile @@ -104,15 +104,16 @@ export QMAILINJECT=c # --- Find a text editor --- -export EDITOR=ed -for ed in "emacs21 -nw" "emacs -nw" vi pico nano ae; do +export MDW_EDITOR=ed +for ed in mg "emacs21 -nw" "emacs -nw" vi pico nano ae; do name=`echo $ed | sed 's/ .*$//'` if __mdw_programp "$name"; then - EDITOR=$ed + MDW_EDITOR=$ed break fi done -export VISUAL="$EDITOR" + +export EDITOR=mdw-editor VISUAL=mdw-editor # --- Various options for programs ---