]> git.wh0rd.org - home.git/blob - .profile.d/aliases.sh
add rrsync alias
[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.2 -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 rrsync='rsync -av --inplace --progress'
19 alias s='aspell -a'
20 ss() { aspell -a <<<"$*"; }
21 alias xine='xine -l'
22
23 grep-svn() { find '(' -wholename '*/.svn' -prune -o -type f -print0 ')' | xargs -0 grep "$@" ; }
24
25 scrub_patch() {
26 sed -i \
27 -e '/^index /d' \
28 -e '/^new file mode /d' \
29 -e '/^Index:/d' \
30 -e '/^=========/d' \
31 -e '/^RCS file:/d' \
32 -e '/^retrieving/d' \
33 -e '/^diff/d' \
34 -e '/^Files .* differ$/d' \
35 -e '/^Only in /d' \
36 -e '/^Common subdirectories/d' \
37 -e '/^+++/s:\t.*::' \
38 -e '/^---/s:\t.*::' \
39 "$@"
40 }
41
42 scrub_html() {
43 sed -i \
44 -e 's:&lt;:<:g' -e 's:&gt;:>:g' \
45 -e 's:&nbsp;::g' -e 's:&amp;:\&:g' \
46 -e 's:&quot;:":g' \
47 "$@"
48 }