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