this flag used to keep aliases and functions out of the startup, but this is problematic; most of the time we want our own macros and functions to be visible, and they don't really cost a lot anyhow. so, dropping the flag entirely, which is nice; cleans up a few conditional areas.
# runs every minute and recreates a fortune for thunderbird signature.
# a lot of the detail below is to get the feisty meow environment loaded for
# the new_sig command.
-* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; perl $HOME/feisty_meow/scripts/text/new_sig.pl) &>>/tmp/${USER}-cron-nechung_fortune.log
+* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; perl $HOME/feisty_meow/scripts/text/new_sig.pl) &>>/tmp/${USER}-cron-nechung_fortune.log
# runs every minute and recreates a fortune for thunderbird signature.
# a lot of the detail below is to get the feisty meow environment loaded for
# the new_sig command.
-* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; perl $HOME/feisty_meow/scripts/text/new_sig.pl) &>>/tmp/${USER}-cron-nechung_fortune.log
+* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; perl $HOME/feisty_meow/scripts/text/new_sig.pl) &>>/tmp/${USER}-cron-nechung_fortune.log
#[opensim restart]
# ensure opensim is started if we can't detect it as running.
-*/5 * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/opensim/maybe_restart_opensim.sh) &>>/tmp/${USER}-cron-opensim_restart.log
+*/5 * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/opensim/maybe_restart_opensim.sh) &>>/tmp/${USER}-cron-opensim_restart.log
#[process check]
# a crontab for periodically dumping the process state.
-* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/processes/show_hot_ones.sh) &>>/tmp/${USER}-cron-active_processes.log
+* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/processes/show_hot_ones.sh) &>>/tmp/${USER}-cron-active_processes.log
#[random sound]
-* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/multimedia/randomly_play.sh) &>>/tmp/${USER}-cron-random_sound.log
+* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/multimedia/randomly_play.sh) &>>/tmp/${USER}-cron-random_sound.log
# repositories, such as sourceforge or github. the uploading process (which we think of as sending
# those updated items swimming downstream to their dependent repositories) is done automatically in
# our makefiles. that's why the code below relies on the top-level makefile in home.
-14 3 * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME ; rev_update ; make ) &>>/tmp/${USER}-cron-synch_and_swim_downstream.log
+14 3 * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME ; rev_update ; make ) &>>/tmp/${USER}-cron-synch_and_swim_downstream.log
echo "failed to chown $TMP to user's ownership."
fi
fi
-if [ -z "$LIGHTWEIGHT_INIT" ]; then
- echo "$word transient area \"$TMP\" for $USER on $(date_stringer)." >>$LOG_FILE
-fi
+echo "$word transient area \"$TMP\" for $USER on $(date_stringer)." >>$LOG_FILE
# set other temporary variables to the same place as TMP.
export TEMP=$TMP
##############
-if [ -z "$LIGHTWEIGHT_INIT" ]; then
- # perform the bulkier parts of the initialization process.
-
- if [ ! -z "$SHELL_DEBUG" ]; then echo "heavyweight init begins..."; fi
-
- # 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
- if [ ! -z "$SHELL_DEBUG" ]; then
- echo "the aliases were missing, now they are being added..."
- fi
- source "$FEISTY_MEOW_LOADING_DOCK/fmc_core_and_custom_aliases.sh"
+# perform the bulkier parts of the initialization process.
+
+if [ ! -z "$SHELL_DEBUG" ]; then echo "heavyweight init begins..."; fi
+
+# 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
+ if [ ! -z "$SHELL_DEBUG" ]; then
+ echo "the aliases were missing, now they are being added..."
fi
+ source "$FEISTY_MEOW_LOADING_DOCK/fmc_core_and_custom_aliases.sh"
+fi
#echo before the new labelling, terminal titles have:
#show_terminal_titles
- # a minor tickle of the title of the terminal, unless we already have some history.
- label_terminal_with_info
+# a minor tickle of the title of the terminal, unless we already have some history.
+label_terminal_with_info
- if [ ! -z "$SHELL_DEBUG" ]; then echo "heavyweight init is done."; fi
-fi
+if [ ! -z "$SHELL_DEBUG" ]; then echo "heavyweight init is done."; fi
if [ -z "$ERROR_OCCURRED" ]; then
# set a sentinel variable to say we loaded the feisty meow environment.
# than when it's just being sourced.
if [[ $0 =~ .*refred\.sh.* ]]; then
THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"
- export LIGHTWEIGHT_INIT=true
source "$THISDIR/../../core/launch_feisty_meow.sh"
refred
fi
echo "FEISTY_MEOW_LOADING_DOCK = $(FEISTY_MEOW_LOADING_DOCK)"
$(CATCHER)'if [ ! -d $(FEISTY_MEOW_LOADING_DOCK) ]; then mkdir -p $(FEISTY_MEOW_LOADING_DOCK); fi'
$(CATCHER)perl $(FEISTY_MEOW_SCRIPTS)/core/generate_aliases.pl
- $(CATCHER)'(export LIGHTWEIGHT_INIT=true; source $(FEISTY_MEOW_SCRIPTS)/core/launch_feisty_meow.sh; perl $(FEISTY_MEOW_SCRIPTS)/text/new_sig.pl)'
+ $(CATCHER)'(source $(FEISTY_MEOW_SCRIPTS)/core/launch_feisty_meow.sh; perl $(FEISTY_MEOW_SCRIPTS)/text/new_sig.pl)'
--- /dev/null
+
+# load feisty meow aliases.
+source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh
+
+sudo apt-get update -y
+check_result "problem while doing 'apt-get update'"
+sudo apt-get dist-upgrade -y
+check_result "problem while doing 'apt-get dist-upgrade'"
+
+