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