]> git.wh0rd.org - home.git/blame - .profile.d/aliases.sh
kill adobe dir too
[home.git] / .profile.d / aliases.sh
CommitLineData
5b61754d
MF
1[[ $- != *i* ]] && return
2
1afdf944 3alias axine='xine -A null'
5b61754d 4alias bc='bc -q'
1afdf944
MF
5#alias bittorrent-curses='bittorrent-curses --max_upload_rate 10'
6#alias bt='bittorrent-curses --max_upload_rate 10 --save_in . --save_incomplete_in .'
5b61754d 7alias duh='du . --max-depth=1 -h'
63d15f58 8alias eclipse='eclipse-3.2 -vmargs -Xmx512m'
ca0cd585 9alias g='git'
5b61754d 10alias gdb='gdb --quiet'
1afdf944 11alias gdbtui='gdbtui --quiet'
5b61754d 12alias grep='grep --colour=auto'
d85737d7 13alias kpdf='okular'
5b61754d
MF
14alias ls='ls --color=auto'
15alias lynx='lynx -nopause -accept_all_cookies -use_mouse'
16alias minicom='minicom -w -c on'
17alias nslookup='nslookup -sil'
1afdf944
MF
18alias quake4='quake4 +set s_driver oss'
19alias repoman='repoman -q -q'
025d46ca 20alias rrsync='rsync -av --inplace --progress'
5b61754d
MF
21alias s='aspell -a'
22ss() { aspell -a <<<"$*"; }
1afdf944 23alias xine='xine -l'
5b61754d
MF
24
25grep-svn() { find '(' -wholename '*/.svn' -prune -o -type f -print0 ')' | xargs -0 grep "$@" ; }
26
27scrub_patch() {
28 sed -i \
29 -e '/^index /d' \
30 -e '/^new file mode /d' \
31 -e '/^Index:/d' \
32 -e '/^=========/d' \
33 -e '/^RCS file:/d' \
34 -e '/^retrieving/d' \
35 -e '/^diff/d' \
36 -e '/^Files .* differ$/d' \
37 -e '/^Only in /d' \
38 -e '/^Common subdirectories/d' \
39 -e '/^+++/s:\t.*::' \
40 -e '/^---/s:\t.*::' \
41 "$@"
42}
43
1afdf944
MF
44scrub_html() {
45 sed -i \
46 -e 's:&lt;:<:g' -e 's:&gt;:>:g' \
47 -e 's:&nbsp;::g' -e 's:&amp;:\&:g' \
48 -e 's:&quot;:":g' \
49 "$@"
5b61754d 50}