914843caeafc0007684f854efbc2099c032a34a0
[feisty_meow.git] / scripts / core / common.alias
1 # common aliases for feisty_meow are located here.
2 # most should work in any bash environment.
3
4 alias aliases=alias
5 #alias arch='if [ -f /bin/arch ]; then /bin/arch; else uname -m; fi' 
6 alias cd..='\cd ..'
7 alias cd...='\cd ../..'
8 alias cd....='\cd ../../..'
9 alias cd.....='\cd ../../../..'
10 alias copy='\cp -i -v '
11 alias cp='\cp -i -v '
12 alias cvs='perl $FEISTY_MEOW_SCRIPTS/rev_control/cvs_fix.pl'
13 alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
14 alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
15 alias df='\df -m'
16 alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
17 alias du='\du -h'
18 alias dvd_rip='vobcopy -m'
19 alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
20 alias l='\ls -FC $color_add'
21 alias ls='\ls -FC $color_add'
22 alias lsd='ls -l'
23 alias md='mkdir'
24 alias mo='less'
25 alias more='less'
26 alias move='mv -i -v '
27 alias mplayer='\mplayer -ao arts'
28 alias mv='\mv -i -v '
29 alias np='gvim'
30 alias path='echo $PATH'
31 alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
32 alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
33 alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
34 #regen-- this might be better as a function.
35 alias regenerate='bash $FEISTY_MEOW_SCRIPTS/core/bootstrap_shells.sh ; perl $FEISTY_MEOW_SCRIPTS/core/generate_aliases.pl ; echo ; nechung'
36 alias reroot='chown -R root:root /root'
37 alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
38 alias ren='\mv -v -i '
39 alias up='cd ..'
40 alias whence=which
41 alias xterm='xterm $myxtermflags'
42 alias xtroff='xtroff $myxflags'
43
44 #hmmm: move these to the custom area?
45 # Standard CAK aliases that add to or extend Unix commands.
46 alias bye='. $FEISTY_MEOW_SCRIPTS/core/goodbye.sh'
47 alias calc='kcalc'
48 alias cls='clear_colormap; clear'
49 if [ "$OS" != "Windows_NT" ]; then
50   if [ -n "$IS_DARWIN" ]; then
51     # case for mac os x.
52     alias exp='open'
53   elif [ ! -z "$(which nautilus)" ]; then
54     alias exp='nautilus'
55   else
56 #check if konqueror exists also?  fall back to uhhh midnight cmdr?
57     alias exp='konqueror'
58   fi
59 else
60   alias explorer="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
61   alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
62 fi
63 alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
64 alias notepad='gedit'
65 if [ "$OS" = "Windows_NT" ]; then
66   # aliases we only use on the winders side.
67   alias vi='gvim'
68 fi
69 alias whereami='echo whoa dude, try not to think about it...'
70 alias why='echo just because.'
71
72 # call the generated aliases file, if it exists.
73 if [ -f "$FEISTY_MEOW_GENERATED/p_alias.sh" ]; then 
74   if [ ! -z "$SHELL_DEBUG" ]; then echo launching generated aliases.; fi
75   source $FEISTY_MEOW_GENERATED/p_alias.sh
76   if [ ! -z "$SHELL_DEBUG" ]; then echo done with generated aliases.; fi
77 fi
78
79 # remove the fredization macro if it was defined, helping to avoid running
80 # the shell scripts twice for users like root that don't always load this
81 # stuff.
82 unalias fredme >/dev/null 2>&1
83