improvements in organization of the aliases, still ongoing.
[feisty_meow.git] / scripts / core / common.alias
1 # common aliases for feisty_meow are located here.
2 # most of these should work in any bash environment...
3 # although some may require more than bash, like the aliases
4 # that invoke perl scripts.
5
6 # repurposes certain commands that feisty meow does a little differently.
7 alias cls='clear_colormap; clear'
8 alias copy='\cp -i -v '
9 alias cp='\cp -i -v '
10 alias cvs='perl $FEISTY_MEOW_SCRIPTS/rev_control/cvs_fix.pl'
11 alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
12 alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
13 alias df='\df -m'
14 alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
15 alias du='\du -h'
16 alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
17 alias l='\ls -FC $color_add'
18 alias ls='\ls -FC $color_add'
19 alias lsd='ls -l'
20 alias md='mkdir'
21 alias more='less'
22 alias move='mv -i -v '
23 alias mv='\mv -i -v '
24 alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
25 alias ren='\mv -v -i '
26 alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
27 alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
28 alias path='echo $PATH'
29 alias whence=which
30
31 # some aliases that are just generally nice to have.
32 alias aliases=alias
33 alias calc='kcalc'
34 alias cd..='\cd ..'
35 alias cd...='\cd ../..'
36 alias cd....='\cd ../../..'
37 alias cd.....='\cd ../../../..'
38 alias mo='less'
39 alias np='gvim'
40 alias up='cd ..'
41
42 # extended aliases for meta-operations.
43 alias dvd_rip='vobcopy -m'
44 alias mplayer='\mplayer -ao arts'
45 alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
46
47 # some really eccentric feisty meow aliases...
48
49 alias bye='. $FEISTY_MEOW_SCRIPTS/users/goodbye.sh'
50
51 # redoes fred's set of custom scripts.
52 alias recustomize='cpdiff $FEISTY_MEOW_DIR/examples/custom_overrides/fred $FEISTY_MEOW_GENERATED/custom'
53 # makes root user's home directory's permissions right.
54 alias reroot='chown -R root:root /root'
55
56 #hmmm: move these to the custom area?
57 if [ "$OS" != "Windows_NT" ]; then
58   if [ -n "$IS_DARWIN" ]; then
59     # case for mac os x.
60     alias exp='open'
61   elif [ ! -z "$(which nautilus)" ]; then
62     alias exp='nautilus'
63   else
64 #check if konqueror exists also?  fall back to uhhh midnight cmdr?
65     alias exp='konqueror'
66   fi
67 else
68   alias explorer="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
69   alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
70 fi
71 alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
72 alias notepad='gedit'
73 if [ "$OS" = "Windows_NT" ]; then
74   # aliases we only use on the winders side.
75   alias vi='gvim'
76 fi
77 alias whereami='echo whoa dude, try not to think about it...'
78 alias why='echo just because.'
79
80 # call the generated aliases file, if it exists.
81 if [ -f "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh" ]; then 
82   if [ ! -z "$SHELL_DEBUG" ]; then echo launching generated aliases.; fi
83   source "$FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh"
84   if [ ! -z "$SHELL_DEBUG" ]; then echo done with generated aliases.; fi
85 fi
86
87 # remove the fredization macro if it was defined, helping to avoid running
88 # the shell scripts twice for users like root that don't always load this
89 # stuff.
90 unalias fredme >/dev/null 2>&1
91