X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fcommon.alias;h=5143f048554525a2d919fd2558be27ee4de39ab2;hb=54191b842084904138fc74df4c07f01171b39a4c;hp=109ad0ccd32bd2e714b6f3bce1514c4018d49e25;hpb=04d1ca71956065bc82b6871d50ad110be6c23b88;p=feisty_meow.git diff --git a/scripts/core/common.alias b/scripts/core/common.alias index 109ad0cc..5143f048 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -13,6 +13,11 @@ ############## +# make our functions available to the aliases. +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + +############## + # 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. @@ -41,11 +46,11 @@ if [ "$OS" != "Windows_NT" ]; then if [ -n "$IS_DARWIN" ]; then # case for mac os x. define_yeti_alias exp='open' - elif [ ! -z "$(which dolphin 2>/dev/null)" ]; then + elif [ ! -z "$(whichable dolphin)" ]; then # we prefer dolphin if available. define_yeti_alias exp='screen -L -S dolphin-$RANDOM -d -m dolphin ' #--select - elif [ ! -z "$(which nautilus 2>/dev/null)" ]; then + elif [ ! -z "$(whichable nautilus)" ]; then # launch nautilus if available. define_yeti_alias exp='nautilus' else @@ -126,12 +131,18 @@ define_yeti_alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh' # some really eccentric feisty meow aliases... +# launches a bash session in the background using the screen command. +define_yeti_alias bashido='screen -L -S bashido -d -m bash' + # says goodbye when leaving a shell. define_yeti_alias bye='. $FEISTY_MEOW_SCRIPTS/processes/goodbye.sh' + 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... + +# yes, these what/who/why functions are really helpful... 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.'