4 # Author : Chris Koeritz
5 # Rights : Copyright (C) 1988-$now by Author
7 # This script is free software; you can modify/redistribute it under the terms
8 # of the GNU General Public License. [ http://www.gnu.org/licenses/gpl.html ]
9 # Feel free to send updates to: [ fred@gruntose.com ]
12 # common aliases for feisty_meow are located here.
13 # most of these should work in any bash environment...
14 # although some may require more than bash, like the aliases
15 # that invoke perl scripts.
19 # repurposes certain commands that feisty meow does a little differently.
20 alias cls='clear_colormap; clear'
21 alias copy='\cp -i -v '
23 alias cvs='perl $FEISTY_MEOW_SCRIPTS/rev_control/cvs_fix.pl'
24 alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
25 alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
27 alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
29 alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
30 # elaborate replacement for explorer command, which we shorten to exp.
31 if [ "$OS" != "Windows_NT" ]; then
32 if [ -n "$IS_DARWIN" ]; then
35 elif [ ! -z "$(which nautilus)" ]; then
36 # we prefer nautilus if available.
39 # last ditch is konqueror browser.
43 # windows gets routed to our helpful script instead.
44 alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
46 # re-use work we did on 'exp' macro for longer command.
48 alias l='\ls -FC $color_add'
49 alias ls='\ls -FC $color_add'
53 alias move='mv -i -v '
56 alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
57 alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
58 alias ren='\mv -v -i '
59 alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
60 alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
61 alias path='echo $PATH'
66 # some aliases that are just generally nice to have.
70 alias cd...='\cd ../..'
71 alias cd....='\cd ../../..'
72 alias cd.....='\cd ../../../..'
79 # extended aliases for meta-operations.
80 alias dvd_rip='vobcopy -m'
81 alias mplayer='\mplayer -ao arts'
82 alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
86 # some really eccentric feisty meow aliases...
88 # says goodbye when leaving a shell.
89 alias bye='. $FEISTY_MEOW_SCRIPTS/users/goodbye.sh'
90 alias cputemp='acpi -t'
91 # redoes fred's set of custom scripts.
92 alias recustomize='regenerate &>/dev/null; echo "copying custom overrides for fred..."; cpdiff $FEISTY_MEOW_DIR/examples/custom_overrides/fred $FEISTY_MEOW_GENERATED/custom; regenerate'
93 # makes root user's home directory's permissions right.
94 alias reroot='chown -R root:root /root'
95 # yes, these are really helpful...
96 alias whereami='echo whoa dude, try not to think about it...'
97 alias why='echo just because.'
99 # done with loading up regular aliases now...
103 # call the generated aliases file, if it exists.
104 if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then
105 if [ ! -z "$SHELL_DEBUG" ]; then echo loading script aliases...; fi
106 source "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh"
107 if [ ! -z "$SHELL_DEBUG" ]; then echo done loading script aliases.; fi
112 # remove the fredization macro if it was defined, helping to avoid running
113 # the shell scripts twice for users like root that don't always load this
115 unalias fredme &>/dev/null