X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=inline;f=scripts%2Fcore%2Funter_alia.sh;h=dbf788ff2cd79beb488392b030e781eb3e1e9c21;hb=59c7011aceee4a122495f92de0dc191fbb4f8293;hp=ef52bfa9e7c19b7777d4e6fa647c41b09f978c1e;hpb=4fa5ea7887a781b6e89d63d3e154ad589bd58856;p=feisty_meow.git diff --git a/scripts/core/unter_alia.sh b/scripts/core/unter_alia.sh index ef52bfa9..dbf788ff 100644 --- a/scripts/core/unter_alia.sh +++ b/scripts/core/unter_alia.sh @@ -5,7 +5,8 @@ # The "common.alias" file is used in the generated aliases file as a base # set of generally useful aliases. We also add aliases for any script files # (perl, bash, python, etc) that we find in the feisty meow script hierarchy. -# Any *.alias files found in the scripts/custom folder are loaded also. +# Any *.alias files found in the $FEISTY_MEOW_GENERATED/custom folder are +# loaded also. if [ ! -z "$SHELL_DEBUG" ]; then echo rebuiling generated aliases file...; fi @@ -19,8 +20,10 @@ test_color=$(ls --help 2>&1 | grep -i color) ALIAS_DEFINITION_FILES=("$FEISTY_MEOW_SCRIPTS/core/common.alias") # if custom aliases files exist, add them to the list. -for i in "$FEISTY_MEOW_SCRIPTS/custom/*.alias"; do - ALIAS_DEFINITION_FILES+=("$i") +for i in "$FEISTY_MEOW_GENERATED/custom/*.alias"; do + if [ -f "$i" ]; then + ALIAS_DEFINITION_FILES+=("$i") + fi done echo "alias files:" for i in "${ALIAS_DEFINITION_FILES[@]}"; do @@ -29,7 +32,7 @@ done # write the aliases for sh and bash scripts. -GENERATED_ALIAS_FILE="$FEISTY_MEOW_GENERATED/aliases.sh" +GENERATED_ALIAS_FILE="$FEISTY_MEOW_GENERATED/fmc_core_and_custom_aliases.sh" echo "writing generated aliases in $GENERATED_ALIAS_FILE..." #hmmm: perhaps a good place for a function to create the header,