X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Flaunch_feisty_meow.sh;h=3c3cd6915f098be702ae41febb16e0daa65e5536;hb=3f6dd0ea77b0c6d86e25f3cb65e54f08737d21c7;hp=26ad78e2d1d5d7101a69f70972aeaa4d89efe5b1;hpb=9e12dd35e19e863639aa86f4f96c64985dceb398;p=feisty_meow.git diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index 26ad78e2..3c3cd691 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -44,13 +44,37 @@ if [ ! -d "$FEISTY_MEOW_APEX" ]; then The feisty meow configuration is damaged somehow. Please change to the directory where it is stored, e.g.: - cd /opt/feistymeow.org/feisty_meow + cd /opt/feistymeow.org/feisty_meow -and execute this command: +and run this command (the whole unwieldy multiple line chunk inside the bars): - export FEISTY_MEOW_APEX=\"\$(pwd)\"; export FEISTY_MEOW_SCRIPTS=\"\$(pwd)/scripts\"; bash scripts/core/reconfigure_feisty_meow.sh && exec bash -i -c \"source \$(pwd)/core/launch_feisty_meow.sh; bash\" + +############## + exec bash -i 3<&- <&4 +EOF +############## + + +This code snippet assumes that the .bashrc file could still need editing to +fix an erroneous FEISTY_MEOW_APEX variable, so we skip it above when bash +runs. Check \$HOME/.bashrc to see if a change there will fix the problem. " +else + # apex is good, so let's make the scripts good too. + if [ -z "$FEISTY_MEOW_SCRIPTS" -o ! -d "$FEISTY_MEOW_SCRIPTS" ]; then + export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_APEX/scripts" + fi + # check again to test our belief system... + if [ ! -d "$FEISTY_MEOW_SCRIPTS" ]; then + unset NO_REPAIRS_NEEDED + echo -e "The feisty meow scripts cannot be found under the current top:\n FEISTY_MEOW_APEX=$FEISTY_MEOW_APEX" + fi fi if [ "$NO_REPAIRS_NEEDED" == "true" ]; then @@ -164,7 +188,9 @@ if [ "$NO_REPAIRS_NEEDED" == "true" ]; then if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo "the aliases were missing, now they are being added..." fi +echo HEEE HAHAHAHAHA source "$FEISTY_MEOW_LOADING_DOCK/fmc_core_and_custom_aliases.sh" +echo HOOOOEY fi #echo before the new labelling, terminal titles have: @@ -182,5 +208,15 @@ if [ "$NO_REPAIRS_NEEDED" == "true" ]; then fi # no error occurred. + if [ ! -z "$FEISTY_MEOW_SHOW_LAUNCH_GREETING" ]; then + echo + echo + echo "welcome to the feisty meow zone of peace, one of many refuges in the uncountably" + echo "infinite multiverses that are hypothetically possible." + echo + echo + unset FEISTY_MEOW_SHOW_LAUNCH_GREETING + fi + fi # "$NO_REPAIRS_NEEDED" was == "true"