]> git.wh0rd.org - home.git/blame - .profile.d/aliases.sh
fall back to sendemail.pullrequestcc for git-format-request-pull
[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'
5b61754d 9alias gdb='gdb --quiet'
1afdf944 10alias gdbtui='gdbtui --quiet'
5b61754d
MF
11alias grep='grep --colour=auto'
12alias ls='ls --color=auto'
13alias lynx='lynx -nopause -accept_all_cookies -use_mouse'
14alias minicom='minicom -w -c on'
15alias nslookup='nslookup -sil'
1afdf944
MF
16alias quake4='quake4 +set s_driver oss'
17alias repoman='repoman -q -q'
025d46ca 18alias rrsync='rsync -av --inplace --progress'
5b61754d
MF
19alias s='aspell -a'
20ss() { aspell -a <<<"$*"; }
1afdf944 21alias xine='xine -l'
5b61754d
MF
22
23grep-svn() { find '(' -wholename '*/.svn' -prune -o -type f -print0 ')' | xargs -0 grep "$@" ; }
24
25scrub_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
1afdf944
MF
42scrub_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 "$@"
5b61754d 48}