X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcore%2Fcommon.alias;h=5143f048554525a2d919fd2558be27ee4de39ab2;hb=07250074175a9d62066c8fc93da945f45f7bfb04;hp=cd08c8ab49f30c610d9ef40e0618180d5e127337;hpb=549e183aff0967124f3a011e40b72b390ad45a01;p=feisty_meow.git diff --git a/scripts/core/common.alias b/scripts/core/common.alias index cd08c8ab..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,6 +131,9 @@ 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' @@ -134,9 +142,6 @@ define_yeti_alias cputemp='acpi -t' # makes root user's home directory's permissions right. define_yeti_alias reroot='chown -R root:root /root' -# space 'em all fixes naming for all of the files of the appropriate types in the current directory. -define_yeti_alias spacemall='spacem *.txt *.pdf *.jpg *.png *.odt *.ods *.JPG *.docx *.m4a *.mp3 *.eml *.html 2>> ~/.tmp/zz_spacem.log' - # 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...'