X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fcommon.alias;h=7b8d3caddc02a0b6dfda48cb7a5b8065ba82d868;hb=ab6bacb578744ce2a0132af78fbf5dc461cf00d3;hp=a8c30c1e789f943bf0153eefa16cd056432df369;hpb=11f798e2d290397e5b4f1f4d2bb7512819a76a9f;p=feisty_meow.git diff --git a/scripts/core/common.alias b/scripts/core/common.alias index a8c30c1e..7b8d3cad 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -1,7 +1,15 @@ -# common aliases for feisty_meow are located here. -# most of these should work in any bash environment... -# although some may require more than bash, like the aliases -# that invoke perl scripts. +#!/bin/bash +############## +# Name : common.alias +# Author : Chris Koeritz +# Rights : Copyright (C) 1988-$now by Author +############## +# This script is free software; you can modify/redistribute it under the terms +# of the GNU General Public License. [ http://www.gnu.org/licenses/gpl.html ] +# Feel free to send updates to: [ fred@gruntose.com ] +############## + +# a list of core aliases for feisty meow codebase. # repurposes certain commands that feisty meow does a little differently. alias cls='clear_colormap; clear' @@ -10,24 +18,49 @@ alias cp='\cp -i -v ' alias cvs='perl $FEISTY_MEOW_SCRIPTS/rev_control/cvs_fix.pl' alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' -alias df='\df -m' +alias df='\df -mh' alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' alias du='\du -h' alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' -alias l='\ls -FC $color_add' -alias ls='\ls -FC $color_add' -alias lsd='ls -l' +# elaborate replacement for filesystem explorer command, which we have +# shortened to "exp". +if [ "$OS" != "Windows_NT" ]; then + if [ -n "$IS_DARWIN" ]; then + # case for mac os x. + alias exp='open' + elif [ ! -z "$(which nautilus 2>/dev/null)" ]; then + # we prefer nautilus if available. + alias exp='nautilus' + else + # last ditch is konqueror browser. + alias exp='konqueror' + fi +else + # windows gets routed to our helpful script instead. + alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh" +fi +# re-use work we did on 'exp' macro for the longer windows command. +alias explorer=exp +alias i=inventory +alias l='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' +alias ls='ls -HhFC $color_add' +alias lsd='ls -hl' alias md='mkdir' alias more='less' alias move='mv -i -v ' alias mv='\mv -i -v ' +alias notepad='gedit' +alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'" alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl' alias ren='\mv -v -i ' alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl' +alias s='echo "##############"' alias path='echo $PATH' alias whence=which +############## + # some aliases that are just generally nice to have. alias aliases=alias alias calc='kcalc' @@ -39,43 +72,31 @@ alias mo='less' alias np='gvim' alias up='cd ..' +############## + # extended aliases for meta-operations. alias dvd_rip='vobcopy -m' +alias blu_rip='echo "what would this command be?"' alias mplayer='\mplayer -ao arts' alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh' +############## + # some really eccentric feisty meow aliases... +# says goodbye when leaving a shell. alias bye='. $FEISTY_MEOW_SCRIPTS/users/goodbye.sh' - -# redoes fred's set of custom scripts. -alias recustomize='cpdiff $FEISTY_MEOW_DIR/examples/custom_overrides/fred $FEISTY_MEOW_GENERATED/custom; regenerate' +alias cputemp='acpi -t' # makes root user's home directory's permissions right. alias reroot='chown -R root:root /root' - -#hmmm: move these to the custom area? -if [ "$OS" != "Windows_NT" ]; then - if [ -n "$IS_DARWIN" ]; then - # case for mac os x. - alias exp='open' - elif [ ! -z "$(which nautilus)" ]; then - alias exp='nautilus' - else -#check if konqueror exists also? fall back to uhhh midnight cmdr? - alias exp='konqueror' - fi -else - alias explorer="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh" - alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh" -fi -alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'" -alias notepad='gedit' -if [ "$OS" = "Windows_NT" ]; then - # aliases we only use on the winders side. - alias vi='gvim' -fi +# yes, these are really helpful... +alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I'\''m very pleased to meet you."' alias whereami='echo whoa dude, try not to think about it...' -alias why='echo just because.' +alias why='echo We all wonder what the point of the universe is at times. If you figure it all out, please write us.' + +# done with loading up regular aliases now... + +############## # call the generated aliases file, if it exists. if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then @@ -84,8 +105,17 @@ if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then if [ ! -z "$SHELL_DEBUG" ]; 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 2>&1 +unalias fredme &>/dev/null + +############## + +# set the sentinel variable that says this file was handled. +export CORE_ALIASES_LOADED=true + +##############