]> git.wh0rd.org - home.git/blob - .profile.d/aliases.sh
import vapier
[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 duh='du . --max-depth=1 -h'
8 alias eclipse='eclipse-3.1 -vmargs -Xmx512m'
9 alias gdb='gdb --quiet'
10 alias gdbtui='gdbtui --quiet'
11 alias grep='grep --colour=auto'
12 alias ls='ls --color=auto'
13 alias lynx='lynx -nopause -accept_all_cookies -use_mouse'
14 alias minicom='minicom -w -c on'
15 alias nslookup='nslookup -sil'
16 alias quake4='quake4 +set s_driver oss'
17 alias repoman='repoman -q -q'
18 alias s='aspell -a'
19 ss() { aspell -a <<<"$*"; }
20 alias xine='xine -l'
21
22 grep-svn() { find '(' -wholename '*/.svn' -prune -o -type f -print0 ')' | xargs -0 grep "$@" ; }
23
24 scrub_patch() {
25 sed -i \
26 -e '/^index /d' \
27 -e '/^new file mode /d' \
28 -e '/^Index:/d' \
29 -e '/^=========/d' \
30 -e '/^RCS file:/d' \
31 -e '/^retrieving/d' \
32 -e '/^diff/d' \
33 -e '/^Files .* differ$/d' \
34 -e '/^Only in /d' \
35 -e '/^Common subdirectories/d' \
36 -e '/^+++/s:\t.*::' \
37 -e '/^---/s:\t.*::' \
38 "$@"
39 }
40
41 scrub_html() {
42 sed -i \
43 -e 's:&lt;:<:g' -e 's:&gt;:>:g' \
44 -e 's:&nbsp;::g' -e 's:&amp;:\&:g' \
45 -e 's:&quot;:":g' \
46 "$@"
47 }