if [ ! -d "$FEISTY_MEOW_GENERATED" ]; then
mkdir "$FEISTY_MEOW_GENERATED"
fi
+if [ ! -d "$FEISTY_MEOW_GENERATED/custom" ]; then
+ mkdir "$FEISTY_MEOW_GENERATED/custom"
+fi
# just a variable we use in here to refer to the generated variables file.
-GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/feisty_meow_variables.sh"
+GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/fmc_variables.sh"
# create the alias file as totally blank.
echo -n >"$GENERATED_FEISTY_MEOW_VARIABLES"
for i in FEISTY_MEOW_DIR FEISTY_MEOW_SCRIPTS FEISTY_MEOW_GENERATED; do
alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
+# redoes fred's set of custom scripts.
+alias recustomize='cpdiff $FEISTY_MEOW_SCRIPTS/examples/custom_overrides/fred $FEISTY_MEOW_GENERATED/custom'
#regen-- this might be better as a function.
alias regenerate='bash $FEISTY_MEOW_SCRIPTS/core/bootstrap_shells.sh ; echo ; nechung'
alias reroot='chown -R root:root /root'
alias why='echo just because.'
# call the generated aliases file, if it exists.
-if [ -f "$FEISTY_MEOW_GENERATED/aliases_for_scripts.sh" ]; then
+if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then
if [ ! -z "$SHELL_DEBUG" ]; then echo launching generated aliases.; fi
- source "$FEISTY_MEOW_GENERATED/aliases_for_scripts.sh"
+ source "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh"
if [ ! -z "$SHELL_DEBUG" ]; then echo done with generated aliases.; fi
fi
# and custom scripts directories.
# trash the old versions.
-unlink("$FEISTY_MEOW_GENERATED/aliases_for_scripts.sh");
+unlink("$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh");
-printf "writing $FEISTY_MEOW_GENERATED/aliases_for_scripts.sh...\n";
+printf "writing $FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh...\n";
# open the alias files to be created.
-open(she, ">> $FEISTY_MEOW_GENERATED/aliases_for_scripts.sh");
+open(she, ">> $FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh");
#print "os is $OS\n";
fi
# make sure our main variables are established.
-GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/feisty_meow_variables.sh"
+GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/fmc_variables.sh"
if [ ! -f "$GENERATED_FEISTY_MEOW_VARIABLES" ]; then
echo -e '\n\n'
echo "The yeti scripts need to be initialized via the bootstrap process, e.g.:"
if [ ! -z "$SHELL_DEBUG" ]; then
echo the aliases were missing, now they are added...
fi
- source "$FEISTY_MEOW_GENERATED/core_and_custom_aliases.sh"
+ source "$FEISTY_MEOW_GENERATED/fmc_core_and_custom_aliases.sh"
fi
# allow connections to our x server from the local host.
# 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
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
+for i in "$FEISTY_MEOW_GENERATED/custom/*.alias"; do
ALIAS_DEFINITION_FILES+=("$i")
done
echo "alias files:"
# write the aliases for sh and bash scripts.
-GENERATED_ALIAS_FILE="$FEISTY_MEOW_GENERATED/core_and_custom_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,
##############################################################################
# pull in the custom overrides for feisty_meow scripts.
-for i in $FEISTY_MEOW_SCRIPTS/custom/*.sh; do
+for i in $FEISTY_MEOW_GENERATED/custom/*.sh; do
if [ ! -z "$SHELL_DEBUG" ]; then
echo "loading customization: $(basename $(dirname $i))/$(basename $i)"
fi
+++ /dev/null
-
-# ignore anything in this directory, since it's not public.
-
-[^.]*
-
-
# cleans up the ownership for all my files.
alias refred='(chown -R fred:fred /home/fred /usr/local/games /home/archives /fatty /clutterato /var/spool/mail/fred ; normal_perm /var/log )'
-# redoes my custom scripts. kind of a bummer if i mistakenly made
-# modifications in the un-saved custom directory itself.
-alias recustomize='cpdiff $FEISTY_MEOW_SCRIPTS/examples/custom_overrides/fred $FEISTY_MEOW_SCRIPTS/custom'
-
script initialization (any files ending in .sh).
when you have some custom scripts you want to use, copy them from your own
-folder to the scripts/custom directory. be careful though, because they
-will never be checked into the repository from there.
+folder to the $FEISTY_MEOW_GENERATED/custom directory.