]> arthur.barton.de Git - ConfigScripts.git/blob - user/bashrc
18a8ac30c27d9590f1c9e3787b74c796b59dbf4d
[ConfigScripts.git] / user / bashrc
1 #
2 # ~/.bashrc: executed by bash(1) for non-login shells.
3 # Written 2006-2008 by Alexander Barton (alex@barton.de)
4 #
5
6 [ -e /tmp/ConfigDebug.$USER ] && echo " >> ~/.bashrc ..."
7
8 [ -z "$BASHRCREAD" -a -r /etc/bash.bashrc ] && source /etc/bash.bashrc
9 [ -z "$BASHRCREAD" -a -r /etc/bashrc ] && source /etc/bashrc
10 [ -z "$BASHRCREAD" -a -r $HOME/.etc/bashrc ] && source $HOME/.etc/bashrc
11
12 # aptitude
13 type -p aptitude >/dev/null 2>&1
14 [ $? -eq 0 ] && alias aptitude="LC_ALL=C sudo aptitude"
15
16 # btdownload
17 type -p btdownloadcurses >/dev/null 2>&1
18 [ $? -eq 0 ] && alias "btdownloadcurses"="btdownloadcurses --max_upload_rate 16"
19
20 # ccache
21 [ -d "/usr/lib/ccache" ] && PATH="/usr/lib/ccache:$PATH"
22
23 # dpkg-buildpackage
24 type -p dpkg-buildpackage >/dev/null 2>&1
25 [ $? -eq 0 ] && alias dpkg-buildpackage="dpkg-buildpackage -kC24A0F637E364856"
26
27 # gitk
28 type -p gitk >/dev/null 2>&1
29 [ $? -eq 0 ] && alias gitk="gitk 2>/dev/null"
30
31 # screen
32 type -p screen >/dev/null 2>&1
33 if [ $? -eq 0 ]; then
34         alias "s"="screen"
35         alias "sr"="screen -dr"
36         alias "sx"="screen -x"
37         type -p irssi >/dev/null 2>&1
38         [ $? -eq 0 ] && alias "si"="screen irssi"
39 fi
40
41 # slrn
42 type -p cleanscore >/dev/null 2>&1
43 [ $? -eq 0 ] && alias slrn="cleanscore -f ~/.slrnscore && slrn"
44
45 alias bblack="ssh arthur.barton.de sudo blacklist"
46 alias pingblack="ssh gw1-0.fr.pingnet.de sudo blacklist"
47
48 BLACK() {
49         echo " --- Arthur.Barton.DE ---"
50         bblack $*
51         echo " --- GW1-0.FR.PingNet.DE ---"
52         pingblack $*
53 }
54
55 # -eof-