trying to get gvim back in.
[feisty_meow.git] / examples / custom_overrides / fred / fred_variables.sh
index 9157d92576c13c650745c4882d7069fee2cd2045..e7c97e7a57f75f58b68f0f077b995dae443d358f 100644 (file)
@@ -33,7 +33,10 @@ export from="Fred T. Hamster <fred@gruntose.com>"
 export BROWSER=/usr/bin/firefox
 
 # editor and other mixed settings...
-export VISUAL="$(which vi)"
+export VISUAL="$(which gvim)"
+if [ $? -ne 0 ]; then
+  export VISUAL="$(which vi)"
+fi
 export EDITOR="$VISUAL"
 
 # this hideous mess is necessitated by our not having found the source of the