X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=infobase%2Ffeisty_inits%2Fdot.bashrc-root;h=b9f2da1144e763af4ae236e29b4135abab9db4cc;hb=09674294ea2ebcf0e4132200db9e081ebfd13cf5;hp=e0facb150007d8b81a7e37f0802fc31e5fccf806;hpb=f8771f888a511ef377c7c0ad35164b90be33bcf7;p=feisty_meow.git diff --git a/infobase/feisty_inits/dot.bashrc-root b/infobase/feisty_inits/dot.bashrc-root index e0facb15..b9f2da11 100644 --- a/infobase/feisty_inits/dot.bashrc-root +++ b/infobase/feisty_inits/dot.bashrc-root @@ -1,19 +1,26 @@ ############## -# provides a macro to initialize the feisty meow environment for the "root" user. +# sets an alias to initialize the feisty meow environment for the "root" user. +# this is safe for root to use, since nothing drastic is modified in the +# environment. one additional alias should not cripple anything. plus we are +# updating the history size to ensure long histories to enable consulting old +# commands. ############## -# drag in the default version of this file. this may not be needed if your -# .bashrc script already has substantial code or already does this. -source /etc/bash.bashrc +if [ -f /etc/bash.bashrc ]; then + # drag in the default version of this file. this may not be needed if your + # .bashrc script already has substantial code or already does this. + source /etc/bash.bashrc +elif [ -f /etc/bashrc ]; then + # pull in the mac's version of this file. + source /etc/bashrc +fi ############## -# set the history sizes to be much larger, and do this whether we load the -# feisty meow environment or not. - +# set the history sizes to be much larger; important to have good history. export HISTSIZE=1000000 export HISTFILESIZE=8000000 @@ -22,10 +29,11 @@ export HISTFILESIZE=8000000 # system-wide install (will be fixed by connect_feisty_meow script): export FEISTY_MEOW_APEX="/opt/feistymeow.org/feisty_meow" -# the "fredme" macro enables the feisty_meow environment. +# the "gofeisty" macro enables the feisty_meow environment. this can be used +# after logging in, and avoids loading the feisty meow environment automatically. +alias gofeisty='source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"' +# similar legacy alias for loading feisty meow. alias fredme='source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"' -# synonym for fredme which makes more sense to most people. -alias feistyme='source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"' # if not commented out, then feisty meow will run all the unit tests during builds. #export RUN_ALL_TESTS=true