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 # a list of core aliases for feisty meow codebase.
14 # repurposes certain commands that feisty meow does a little differently.
15 alias cls='clear_colormap; clear'
16 alias copy='\cp -i -v '
18 alias cvs='perl $FEISTY_MEOW_SCRIPTS/rev_control/cvs_fix.pl'
19 alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
20 alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
22 alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
24 alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
25 # elaborate replacement for filesystem explorer command, which we have
27 if [ "$OS" != "Windows_NT" ]; then
28 if [ -n "$IS_DARWIN" ]; then
31 elif [ ! -z "$(which nautilus)" ]; then
32 # we prefer nautilus if available.
35 # last ditch is konqueror browser.
39 # windows gets routed to our helpful script instead.
40 alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
42 # re-use work we did on 'exp' macro for the longer windows command.
44 alias l='\ls -hFC $color_add'
45 alias ls='\ls -hFC $color_add'
49 alias move='mv -i -v '
52 alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
53 alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
54 alias ren='\mv -v -i '
55 alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
56 alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
57 alias s='echo "##############"'
58 alias path='echo $PATH'
63 # some aliases that are just generally nice to have.
67 alias cd...='\cd ../..'
68 alias cd....='\cd ../../..'
69 alias cd.....='\cd ../../../..'
76 # extended aliases for meta-operations.
77 alias dvd_rip='vobcopy -m'
78 alias blu_rip='echo "what would this command be?"'
79 alias mplayer='\mplayer -ao arts'
80 alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
84 # some really eccentric feisty meow aliases...
86 # says goodbye when leaving a shell.
87 alias bye='. $FEISTY_MEOW_SCRIPTS/users/goodbye.sh'
88 alias cputemp='acpi -t'
89 # makes root user's home directory's permissions right.
90 alias reroot='chown -R root:root /root'
91 # yes, these are really helpful...
92 alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I'\''m very pleased to meet you."'
93 alias whereami='echo whoa dude, try not to think about it...'
94 alias why='echo just because.'
96 # done with loading up regular aliases now...
100 # call the generated aliases file, if it exists.
101 if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then
102 if [ ! -z "$SHELL_DEBUG" ]; then echo loading script aliases...; fi
103 source "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh"
104 if [ ! -z "$SHELL_DEBUG" ]; then echo done loading script aliases.; fi
109 # remove the fredization macro if it was defined, helping to avoid running
110 # the shell scripts twice for users like root that don't always load this
112 unalias fredme &>/dev/null
116 # set the sentinel variable that says this file was handled.
117 export CORE_ALIASES_LOADED=true