added update step to get the libs up to date.
[feisty_meow.git] / customizing / fred / fred_variables.sh
index 8fa5e6b006951e112f14e096872c6772da4607ea..137fdf3dd00840486f1b755ec8e7c9b328f5d64e 100644 (file)
@@ -20,7 +20,7 @@ if [ -z "$NETHACKOPTIONS" ]; then
   # add a bunch of folders to the list for checkin & checkout.  these are
   # definitely personal, and some of them are fairly dated (the yeti and
   # hoople folders, for example).
-  REPOSITORY_LIST+="cloud ebooks hoople hoople1 hoople2 inova_codebase quartz web yeti xsede/docs xsede/xsede_tests xsede/code/cak0l xsede/code/libraries xsede/secrets"
+  REPOSITORY_LIST+="cloud ebooks hoople hoople1 hoople2 inova_codebase quartz web yeti xsede/docs xsede/secrets xsede/xsede_tests xsede/code/fred "
 
   # point to our local certificate for ssh usage.
   export SVN_SSH="ssh -i $HOME/.ssh/id_dsa_sourceforge"
@@ -40,7 +40,16 @@ if [ -z "$NETHACKOPTIONS" ]; then
   export BROWSER=/usr/bin/firefox
 
   # editor and other mixed settings...
-  export EDITOR="$(which vi)"
+  export EDITOR="$(which vim)"
+  if [ -z "$EDITOR" ]; then
+    EDITOR="$(which vi)"
+    if [ -z "$EDITOR" ]; then
+      EDITOR="$(which emacs)"
+      if [ -z "$EDITOR" ]; then
+        echo "Cannot find a friendly editor."
+      fi
+    fi
+  fi
   export VISUAL="$EDITOR"
   # the editors for revision control must wait while document is edited,
   # so gvim and others launched to x window are not appropriate.