Merge branch 'main' of feistymeow.org:feisty_meow
[feisty_meow.git] / 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 ; 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
42 #hmmm: move these to the custom area?
43 # Standard CAK aliases that add to or extend Unix commands.
44 alias bye='. $FEISTY_MEOW_SCRIPTS/users/goodbye.sh'
45 alias calc='kcalc'
46 alias cls='clear_colormap; clear'
47 if [ "$OS" != "Windows_NT" ]; then
48   if [ -n "$IS_DARWIN" ]; then
49     # case for mac os x.
50     alias exp='open'
51   elif [ ! -z "$(which nautilus)" ]; then
52     alias exp='nautilus'
53   else
54 #check if konqueror exists also?  fall back to uhhh midnight cmdr?
55     alias exp='konqueror'
56   fi
57 else
58   alias explorer="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
59   alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
60 fi
61 alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
62 alias notepad='gedit'
63 if [ "$OS" = "Windows_NT" ]; then
64   # aliases we only use on the winders side.
65   alias vi='gvim'
66 fi
67 alias whereami='echo whoa dude, try not to think about it...'
68 alias why='echo just because.'
69
70 # call the generated aliases file, if it exists.
71 if [ -f "$FEISTY_MEOW_GENERATED/aliases_for_scripts.sh" ]; then 
72   if [ ! -z "$SHELL_DEBUG" ]; then echo launching generated aliases.; fi
73   source "$FEISTY_MEOW_GENERATED/aliases_for_scripts.sh"
74   if [ ! -z "$SHELL_DEBUG" ]; then echo done with generated aliases.; fi
75 fi
76
77 # remove the fredization macro if it was defined, helping to avoid running
78 # the shell scripts twice for users like root that don't always load this
79 # stuff.
80 unalias fredme >/dev/null 2>&1
81