chiark / gitweb /
bash_profile: Make editor selection indirect via a script mdw-editor.
[profile] / bash_profile
index c290aa97892bcdd07704aab2dc069d847164f5e8..3da56a881c120bad27cbaf40b1bdf481c7ca3568 100644 (file)
@@ -104,15 +104,16 @@ export QMAILINJECT=c
 
 # --- Find a text editor ---
 
-export EDITOR=ed
+export MDW_EDITOR=ed
 for ed in "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 ---