improvements in organization of the aliases, still ongoing.
[feisty_meow.git] / scripts / core / common.alias
index b3b738ef5e23d4fbbd41ac78db62ac73999dbd5b..54f0e95519c4292bd69c9a922c55fd3e05bd2497 100644 (file)
@@ -1,51 +1,59 @@
 # common aliases for feisty_meow are located here.
-# most should work in any bash environment.
+# most of these should work in any bash environment...
+# although some may require more than bash, like the aliases
+# that invoke perl scripts.
 
-alias aliases=alias
-#alias arch='if [ -f /bin/arch ]; then /bin/arch; else uname -m; fi' 
-alias cd..='\cd ..'
-alias cd...='\cd ../..'
-alias cd....='\cd ../../..'
-alias cd.....='\cd ../../../..'
+# repurposes certain commands that feisty meow does a little differently.
+alias cls='clear_colormap; clear'
 alias copy='\cp -i -v '
 alias cp='\cp -i -v '
-alias cvs='perl $SHELLDIR/rev_control/cvs_fix.pl'
-alias del='perl $SHELLDIR/files/safedel.pl'
-alias deltree='perl $SHELLDIR/files/safedel.pl'
+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 dir='perl $SHELLDIR/files/summing_dir.pl'
+alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
 alias du='\du -h'
-alias dvd_rip='vobcopy -m'
-alias erase='perl $SHELLDIR/files/safedel.pl'
+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'
 alias md='mkdir'
-alias mo='less'
 alias more='less'
 alias move='mv -i -v '
-alias mplayer='\mplayer -ao arts'
 alias mv='\mv -i -v '
-alias np='gvim'
-alias path='echo $PATH'
-alias play='bash $SHELLDIR/multimedia/sound_play.sh'
-alias rmdir='perl $SHELLDIR/files/zapdirs.pl'
-alias rd='perl $SHELLDIR/files/zapdirs.pl'
-#regen-- this might be better as a function.
-alias regenerate='bash $SHELLDIR/core/bootstrap_shells.sh ; perl $SHELLDIR/core/generate_aliases.pl ; echo ; nechung'
-alias reroot='chown -R root:root /root'
-alias rm='perl $SHELLDIR/files/safedel.pl'
+alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
 alias ren='\mv -v -i '
-alias up='cd ..'
+alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
+alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
+alias path='echo $PATH'
 alias whence=which
-alias xterm='xterm $myxtermflags'
-alias xtroff='xtroff $myxflags'
 
-#hmmm: move these to the custom area?
-# Standard CAK aliases that add to or extend Unix commands.
-alias bye='. $SHELLDIR/core/goodbye.sh'
+# some aliases that are just generally nice to have.
+alias aliases=alias
 alias calc='kcalc'
-alias cls='clear_colormap; clear'
+alias cd..='\cd ..'
+alias cd...='\cd ../..'
+alias cd....='\cd ../../..'
+alias cd.....='\cd ../../../..'
+alias mo='less'
+alias np='gvim'
+alias up='cd ..'
+
+# extended aliases for meta-operations.
+alias dvd_rip='vobcopy -m'
+alias mplayer='\mplayer -ao arts'
+alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
+
+# some really eccentric feisty meow aliases...
+
+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'
+# 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.
@@ -57,8 +65,8 @@ if [ "$OS" != "Windows_NT" ]; then
     alias exp='konqueror'
   fi
 else
-  alias explorer="bash $SHELLDIR/winders/exploder.sh"
-  alias exp="bash $SHELLDIR/winders/exploder.sh"
+  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'
@@ -70,9 +78,9 @@ alias whereami='echo whoa dude, try not to think about it...'
 alias why='echo just because.'
 
 # call the generated aliases file, if it exists.
-if [ -f "$GENERADIR/p_alias.sh" ]; then 
+if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then 
   if [ ! -z "$SHELL_DEBUG" ]; then echo launching generated aliases.; fi
-  source $GENERADIR/p_alias.sh
+  source "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh"
   if [ ! -z "$SHELL_DEBUG" ]; then echo done with generated aliases.; fi
 fi