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 2>/dev/null)" ]; 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.
45 alias l='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
46 alias ls='ls -HhFC $color_add'
50 alias move='mv -i -v '
53 alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
54 alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
55 alias ren='\mv -v -i '
56 alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
57 alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
58 alias s='echo "##############"'
59 alias path='echo $PATH'
64 # some aliases that are just generally nice to have.
68 alias cd...='\cd ../..'
69 alias cd....='\cd ../../..'
70 alias cd.....='\cd ../../../..'
77 # extended aliases for meta-operations.
78 alias dvd_rip='vobcopy -m'
79 alias blu_rip='echo "what would this command be?"'
80 alias mplayer='\mplayer -ao arts'
81 alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
85 # some really eccentric feisty meow aliases...
87 # says goodbye when leaving a shell.
88 alias bye='. $FEISTY_MEOW_SCRIPTS/users/goodbye.sh'
89 alias cputemp='acpi -t'
90 # makes root user's home directory's permissions right.
91 alias reroot='chown -R root:root /root'
92 # yes, these are really helpful...
93 alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I'\''m very pleased to meet you."'
94 alias whereami='echo whoa dude, try not to think about it...'
95 alias why='echo We all wonder what the point of the universe is at times. If you figure it all out, please write us.'
97 # done with loading up regular aliases now...
101 # call the generated aliases file, if it exists.
102 if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then
103 if [ ! -z "$SHELL_DEBUG" ]; then echo loading script aliases...; fi
104 source "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh"
105 if [ ! -z "$SHELL_DEBUG" ]; then echo done loading script aliases.; fi
110 # remove the fredization macro if it was defined, helping to avoid running
111 # the shell scripts twice for users like root that don't always load this
113 unalias fredme &>/dev/null
117 # set the sentinel variable that says this file was handled.
118 export CORE_ALIASES_LOADED=true