X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fcommon.alias;h=9c24dfc2e9d6a082690290a4efc61dc64057c6de;hb=ad815024bfa7d47af09bfb983dfe7fa112ac2c59;hp=354689b97ff85250c70e88a59449bdfc63a63a00;hpb=dbebc751162f353ca8a4df80656e96bf51d37e01;p=feisty_meow.git diff --git a/scripts/core/common.alias b/scripts/core/common.alias index 354689b9..9c24dfc2 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. @@ -31,7 +36,7 @@ define_yeti_alias copy='\cp -i -v' define_yeti_alias cp='\cp -i -v' define_yeti_alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' define_yeti_alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' -define_yeti_alias df='\df -mh' +define_yeti_alias df='\df -h' define_yeti_alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' define_yeti_alias du='\du -h' define_yeti_alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' @@ -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 @@ -63,6 +68,7 @@ define_yeti_alias get_feisty='rpuffer $FEISTY_MEOW_APEX; regenerate' define_yeti_alias halt='sudo shutdown -h now' define_yeti_alias i=inventory define_yeti_alias l='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' +define_yeti_alias larch='list_arch' define_yeti_alias ll='ls_dot_add=-a perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' define_yeti_alias ls='ls -HhFC $color_add' define_yeti_alias lsd='ls -hl' @@ -114,14 +120,6 @@ define_yeti_alias add_apache_site="sudo bash \$FEISTY_MEOW_SCRIPTS/system/add_ap define_yeti_alias remove_apache_site="sudo bash \$FEISTY_MEOW_SCRIPTS/system/remove_apache_site.sh" define_yeti_alias add_swap_mount="sudo bash \$FEISTY_MEOW_SCRIPTS/system/add_swap_mount.sh" -### some site avenger sudoized aliases. -##define_yeti_alias revamp_cakelampvm="echo -e '\ -##You might want to run one of these commands to perform the revamp process,\n -##depending on your VM version:\n'; -##for i in $FEISTY_MEOW_SCRIPTS/site_avenger/revamp_cakelampvm*; do -## echo sudo bash \"$FEISTY_MEOW_SCRIPTS/site_avenger/$(basename $i)\"; -##done" - ############## # extended aliases for meta-operations. @@ -134,12 +132,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.'