X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fcommon.alias;h=9c94ef167597c8075920465714826f8220784dcd;hb=e5073919fc09218f1b0799f7c3c33ae343b68e49;hp=e311dc28bff7a691a3dec4d2cf7b081bea511dcf;hpb=ba7ebd82c393c361718230409375720461613702;p=feisty_meow.git diff --git a/scripts/core/common.alias b/scripts/core/common.alias index e311dc28..9c94ef16 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -9,7 +9,21 @@ # Feel free to send updates to: [ fred@gruntose.com ] ############## -# a list of core aliases for feisty meow codebase. +# this file provides a list of core aliases for feisty meow codebase. + +############## + +# call the generated aliases file, if it exists. +# we do this first so that our core aliases get a chance to override the aliases +# based on scripts. + +if [ -f "$FEISTY_MEOW_LOADING_DOCK/fmc_aliases_for_scripts.sh" ]; then + if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo loading script aliases...; fi + source "$FEISTY_MEOW_LOADING_DOCK/fmc_aliases_for_scripts.sh" + if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo done loading script aliases.; fi +fi + +############## # repurposes certain commands that feisty meow does a little differently. define_yeti_alias cls='clear_colormap; clear' @@ -85,6 +99,16 @@ define_yeti_alias feisty_branch='pushd $FEISTY_MEOW_APEX ; git branch ; popd' ############## +# some important retreads on aliases that provide a sudo-ized version of other scripts. + +define_yeti_alias snarf_linux_config="sudo -E PERLLIB=\$PERLLIB perl \$FEISTY_MEOW_SCRIPTS/archival/snarf_linux_config.pl" +#no, does its own sudo wrangling.edefine_yeti_alias standup="sudo bash \"$FEISTY_MEOW_SCRIPTS/site_avenger/standup.sh\"" + +#hmmm: some magma intrusions from the fred customizations... +define_yeti_alias revamp_cakelampvm="sudo bash \"$FEISTY_MEOW_SCRIPTS/site_avenger/revamp_cakelampvm.sh\"" + +############## + # extended aliases for meta-operations. define_yeti_alias dvd_rip='vobcopy -m' define_yeti_alias blu_rip='echo "what would this command be?"' @@ -101,7 +125,7 @@ define_yeti_alias cputemp='acpi -t' # makes root user's home directory's permissions right. define_yeti_alias reroot='chown -R root:root /root' # yes, these are really helpful... -define_yeti_alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I'\''m very pleased to meet you."' +define_yeti_alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I am very pleased to meet you."' define_yeti_alias whereami='echo whoa dude, try not to think about it...' define_yeti_alias why='echo We all wonder what the point of the universe is at times. If you figure it all out, please write us.' @@ -109,24 +133,15 @@ define_yeti_alias why='echo We all wonder what the point of the universe is at t ############## -# call the generated aliases file, if it exists. -if [ -f "$FEISTY_MEOW_LOADING_DOCK/fmc_aliases_for_scripts.sh" ]; then - if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo loading script aliases...; fi - source "$FEISTY_MEOW_LOADING_DOCK/fmc_aliases_for_scripts.sh" - if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo done loading script aliases.; fi -fi - -############## - -# remove the fredization macro if it was defined, helping to avoid running -# the shell scripts twice for users like root that don't always load this -# stuff. -unalias fredme &>/dev/null +# remove the "fredization" or "feistymeowization" macros if they're defined, +# which reduces the chance of loading the shell environment twice for users +# like root that don't load feisty meow automatically. +unalias fredme feistyme &>/dev/null ############## # set the sentinel alias that says this file was handled. -alias CORE_ALIASES_LOADED=true +#alias CORE_ALIASES_LOADED=true ##############