X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Flaunch_feisty_meow.sh;h=c130a00a0145a4b53ce1a2839bfbfe5e20d171b5;hb=082d1ce6c2d109912119a581086f36c9eaa368b6;hp=8f0a3a485aa945f11ab2ea9d1ae857bbbaba3f98;hpb=9d1052f9cae51864e8fb39d3f34048952b169cf4;p=feisty_meow.git diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index 8f0a3a48..c130a00a 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -34,7 +34,7 @@ if [ -z "$FEISTY_MEOW_LOADING_DOCK" ]; then if [ ! -f "$FEISTY_MEOW_VARIABLES_LOADING_FILE" ]; then echo -e '\n\n' echo "Feisty meow scripts need initialization via the bootstrap process, e.g.:" - echo " bash $HOME/feisty_meow/scripts/core/bootstrap_shells.sh" + echo " bash $HOME/feisty_meow/scripts/core/reconfigure_feisty_meow.sh" echo -e '\n\n' ERROR_OCCURRED=true fi @@ -80,6 +80,15 @@ shopt -s checkwinsize ############## +# make history writes immediate to avoid losing history if bash is zapped. +echo $PROMPT_COMMAND | grep -q history +if [ $? -ne 0 ]; then + # we only change the prompt command if we think it hasn't already been done. + export PROMPT_COMMAND="history -a;$PROMPT_COMMAND" +fi + +############## + if [ -z "$LIGHTWEIGHT_INIT" ]; then # perform the bulkier parts of the initialization process.