bash_profile: Use `mg' as default editor, if it's available.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 30 Jan 2008 12:17:28 +0000 (12:17 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 31 Jan 2008 13:55:43 +0000 (13:55 +0000)
It starts up so much faster than Emacs, and using it isn't much of a
hardship.

bash_profile

index 3da56a8..bc812d6 100644 (file)
@@ -105,7 +105,7 @@ export QMAILINJECT=c
 # --- Find a text editor ---
 
 export MDW_EDITOR=ed
-for ed in "emacs21 -nw" "emacs -nw" vi pico nano ae; do
+for ed in mg "emacs21 -nw" "emacs -nw" vi pico nano ae; do
   name=`echo $ed | sed 's/ .*$//'`
   if __mdw_programp "$name"; then
     MDW_EDITOR=$ed