X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fvariables.sh;h=fa4bdca9e4ce85f3b769ca712ee4386e0165fec4;hb=cfb8799ca367a0cf16a2795483691136cb9735db;hp=7c552cbe65c3148fdf8285f72f9f9ccd60066132;hpb=1622e38a1cb487dfd4000376792fb7ff718de8d1;p=feisty_meow.git diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 7c552cbe..fa4bdca9 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -220,9 +220,7 @@ define_yeti_variable DEFAULT_FEISTYMEOW_ORG_DIR=/opt/feistymeow.org fi # add in any site avenger applications that are in the apps folder. if [ -d "$HOME/apps" ]; then - # first, simple projects. - REPOSITORY_LIST+="$(find "$HOME/apps" -iname "avenger5" -type d) " - # then, site avenger specific projects. + # back up all the apps. REPOSITORY_LIST+="$(find "$HOME/apps" -maxdepth 2 -mindepth 2 -iname "avenger5" -type d) " fi @@ -290,8 +288,8 @@ fi ############## -# pull in the custom overrides for feisty_meow scripts. this is done last, -# because we want to set everything up as expected, then let the user +# pull in the custom overrides for feisty_meow scripts. this is done almost +# last, because we want to set everything up as expected, then let the user # override individual variables and definitions. we also don't guard this # to avoid running it again, because we don't know what mix of functions and # aliases they want to define in there. @@ -306,3 +304,37 @@ for i in $FEISTY_MEOW_LOADING_DOCK/custom/*.sh; do source "$i" done +############## + +# a late breaking action is to set the editor, if we can. +# we will fallback to whatever we can find on the host. +export EDITOR +if [ ! -z "$DISPLAY" ]; then + # only try to add bluefish, a gui editor, if there is an X display for it. + if [ -z "$EDITOR" ]; then + EDITOR="$(which bluefish)" + fi +fi +if [ -z "$EDITOR" ]; then + EDITOR="$(which gvim)" + if [ ! -z "$EDITOR" ]; then + # if we found gvim, then add in the no forking flag. + EDITOR+=" --nofork" + fi +fi +if [ -z "$EDITOR" ]; then + EDITOR="$(which vim)" +fi +if [ -z "$EDITOR" ]; then + EDITOR="$(which vi)" +fi +## +# out of ideas about editors at this point. +## +# set the VISUAL variable from EDITOR if we found an editor to use. +if [ ! -z "$EDITOR" ]; then + VISUAL="$EDITOR" +fi + +############## +