bash_profile: Make editor selection indirect via a script mdw-editor.
[profile] / setup
diff --git a/setup b/setup
index caa7b4b..3978ff4 100755 (executable)
--- a/setup
+++ b/setup
@@ -157,7 +157,6 @@ dotfiles="
   e-keybindings.cfg:.enlightenment/keybindings.cfg
   evnc-keybindings.cfg:.enlightenment-vnc/keybindings.cfg
   jue-peek.jpg:.enlightenment/backgrounds/jue-peek.jpg"
-mkdir -p $HOME/test
 echo "Installing dotfiles..."
 for d in $dotfiles; do
   target=.$d
@@ -173,6 +172,19 @@ for d in $dotfiles; do
 done
 echo " all done."
 
+### Install useful scripts included in this package
+scripts="
+  mdw-editor"
+echo "Installing scripts..."
+mkdir -p $HOME$sub/bin
+for s in $scripts; do
+  ft=$HOME$sub/bin/$s
+  ln -s $here/$s $ft.new
+  mv $ft.new $ft
+  echo "  $s"
+done
+echo " all done."
+
 ### Set up the Emacs config
 $echon "Finding a suitable emacs:$echoc"
 emacs=no