X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fcommon.alias;h=aac26d5e3265d450a5591a50f78f89cdf03132cb;hb=4015bdf74ecf40c2169e7ad439fe316d1643dea9;hp=ea90610816a72a18576c0566b794bb1d20748916;hpb=e882e7e4aa39c3b46696172d515af5e4c6a9d455;p=feisty_meow.git diff --git a/scripts/core/common.alias b/scripts/core/common.alias index ea906108..aac26d5e 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -13,6 +13,12 @@ ############## +# make our functions available to the aliases. +#hmmm: should this be necessary? will it even work? +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,8 +47,12 @@ 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 + # 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 - # we prefer nautilus if available. + # launch nautilus if available. define_yeti_alias exp='nautilus' else # last ditch is konqueror browser. @@ -110,9 +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" -#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. @@ -127,10 +134,17 @@ define_yeti_alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh' # 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... + +# space 'em all fixes naming for all of the files of the appropriate types in the current directory. +define_yeti_alias spacemall="find . -maxdepth 1 -mindepth 1 -type f \( $(echo pdf png jpg jpeg odt ods docx m4a mp3 eml html mov pptx xlsx zip | sed -e 's/\([a-z0-9][a-z0-9]*\)/-iname \"*.\1\" -o /g') -iname \"*.txt\" \) -exec bash "$FEISTY_MEOW_SCRIPTS/files/spacem.sh" \"{}\" \; " +#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...' 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.'