]> git.wh0rd.org - home.git/blob - .profile.d/aliases.sh
eject finished cds
[home.git] / .profile.d / aliases.sh
1 [[ $- != *i* ]] && return
2
3 alias axine='xine -A null'
4 alias bc='bc -q'
5 #alias bittorrent-curses='bittorrent-curses --max_upload_rate 10'
6 #alias bt='bittorrent-curses --max_upload_rate 10 --save_in . --save_incomplete_in .'
7 alias cdrecord='cdrecord -vvv -eject driveropts=burnfree'
8 alias duh='du . --max-depth=1 -h'
9 alias eclipse='eclipse-3.2 -vmargs -Xmx512m'
10 alias g='git'
11 alias gdb='gdb --quiet'
12 alias gdbtui='gdbtui --quiet'
13 alias nohist='export HISTFILE=/dev/null'
14 alias kpdf='okular'
15 alias lynx='lynx -nopause -accept_all_cookies -use_mouse'
16 alias minicom='minicom -w -c on'
17 alias nslookup='nslookup -sil'
18 alias p1='patch -p1'
19 alias p1d='patch -p1 --dry-run'
20 alias p1dr='patch -p1 --dry-run -R'
21 alias p1r='patch -p1 -R'
22 alias quake4='quake4 +set s_driver oss'
23 alias repoman='repoman -q -q'
24 alias rrsync='rsync -av --inplace --progress'
25 alias s='aspell -a'
26 ss() { aspell -a <<<"$*"; }
27 alias xine='xine -l'
28
29 alias wol-vapier='wakeonlan -i 192.168.1.255 00:26:18:80:ea:da'
30
31 if [[ ${TERM} != "dumb" ]] ; then
32 alias grep='grep --colour=auto'
33 alias ls='ls --color=auto'
34 fi
35
36 grep-svn() { find '(' -wholename '*/.svn' -prune -o -type f -print0 ')' | xargs -0 grep "$@" ; }
37
38 scrub_patch() {
39 sed -i \
40 -e '/^index /d' \
41 -e '/^new file mode /d' \
42 -e '/^Index:/d' \
43 -e '/^=========/d' \
44 -e '/^RCS file:/d' \
45 -e '/^retrieving/d' \
46 -e '/^diff/d' \
47 -e '/^Files .* differ$/d' \
48 -e '/^Only in /d' \
49 -e '/^Common subdirectories/d' \
50 -e '/^+++/s:\t.*::' \
51 -e '/^---/s:\t.*::' \
52 "$@"
53 }
54
55 scrub_html() {
56 sed -i \
57 -e 's:&lt;:<:g' -e 's:&gt;:>:g' \
58 -e 's:&nbsp;::g' -e 's:&amp;:\&:g' \
59 -e 's:&quot;:":g' \
60 "$@"
61 }