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