#really need to use better exit codes.
}
+##############
+
$FEISTY_MEOW_LOADING_DOCK =~ s/\\/\//g;
$FEISTY_MEOW_SCRIPTS =~ s/\\/\//g;
$FEISTY_MEOW_APEX =~ s/\\/\//g;
+##############
+
# create our generated shells directory if it's not already there.
if (! -d $FEISTY_MEOW_LOADING_DOCK) {
mkdir $FEISTY_MEOW_LOADING_DOCK;
system("chmod -R u+x \"$FEISTY_MEOW_BINARIES\"/*");
}
+##############
+
# generate the first set of alias files that are defined in the core
# and custom scripts directories.
&rebuild_script_aliases;
+##############
+
# trash the old versions.
unlink("$FEISTY_MEOW_LOADING_DOCK/fmc_aliases_for_scripts.sh");
printf "writing $FEISTY_MEOW_LOADING_DOCK/fmc_aliases_for_scripts.sh...\n";
}
+##############
+
# open the alias files to be created.
open(she, ">> $FEISTY_MEOW_LOADING_DOCK/fmc_aliases_for_scripts.sh");
close(she);
+##############
+
+# prepare a finalizer chunk that is the last thing to load.
+
+open(she, ">> $FEISTY_MEOW_LOADING_DOCK/fmc_ending_sentinel.sh");
+
+# write in our sentinel alias that says alias loading was handled.
+print she "define_yeti_alias CORE_ALIASES_LOADED=true\n";
+
+close(she);
+
+##############
+
1;
+
fi
##############
+
+echo POINT A
if [ -z "$ERROR_OCCURRED" ]; then
-
+
+echo POINT B
# pull in our generated variables that are the minimal set we need to find
# the rest of our resources.
source "$FEISTY_MEOW_VARIABLES_LOADING_FILE"
+echo POINT C
# Set up the temporary directory.
source "$FEISTY_MEOW_SCRIPTS/core/create_tempdir.sh"
+echo POINT D
fi
fi
if [ -z "$ERROR_OCCURRED" ]; then
+echo POINT E
+
# load the larger body of standard feisty meow variables into the environment.
# we actually want this to always run also; it will decide what variables need
# to be set again.
source "$FEISTY_MEOW_SCRIPTS/core/variables.sh"
+echo POINT F
##############
# include helpful functions. we do this every time rather than making it part
# sub-shells in bash.
source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
+echo POINT G
# load some helper methods for the terminal which we'll use below.
source "$FEISTY_MEOW_SCRIPTS/tty/terminal_titler.sh"
+echo POINT H
##############
+#hmmm: abstract this to a twiddle shell options method.
# check hash table before searching path.
shopt -s checkhash
# don't check path for sourced files.
shopt -s checkwinsize
##############
+echo POINT I
# make history writes immediate to avoid losing history if bash is zapped.
echo $PROMPT_COMMAND | grep -q history
if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo "heavyweight init begins..."; fi
+echo POINT J
# set up the aliases for the shell, but only if they are not already set.
type CORE_ALIASES_LOADED &>/dev/null
if [ $? -ne 0 ]; then
echo HOOOOEY
fi
+echo POINT K
#echo before the new labelling, terminal titles have:
#show_terminal_titles
unset FEISTY_MEOW_SHOW_LAUNCH_GREETING
fi
+ # load the last bits we do here.
+ source "$FEISTY_MEOW_LOADING_DOCK/fmc_ending_sentinel.sh"
+
fi # "$NO_REPAIRS_NEEDED" was == "true"