From: Mark Wooding Date: Wed, 30 Jan 2008 12:17:28 +0000 (+0000) Subject: bash_profile: Use `mg' as default editor, if it's available. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/706d30bcece7ca7f3e6b1176252b91984c661f3b?ds=sidebyside;hp=459c9fb2fc1ea83ebc141cc8b898c4e704eafa63 bash_profile: Use `mg' as default editor, if it's available. It starts up so much faster than Emacs, and using it isn't much of a hardship. --- diff --git a/bash_profile b/bash_profile index 3da56a8..bc812d6 100644 --- a/bash_profile +++ b/bash_profile @@ -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