Perturb malloc so that we spot bugs quicker
[cmccabe-etc] / .bashrc
1 # .bashrc
2
3 # Source global definitions
4 if [ -f /etc/bashrc ]; then
5         . /etc/bashrc
6 fi
7
8 if [ -f ~/.bashrc-local ]; then
9         . ~/.bashrc-local
10 fi
11
12 xlock2() {
13         ps aux | grep -v grep | grep xscreensaver > /dev/null
14         if [ $? -ne 0 ]; then
15                 echo "starting xscreensaver..."
16                 xscreensaver &
17         fi
18         until xscreensaver-command -lock; do
19                 sleep 1
20         done
21 }
22
23 case $- in
24 *i*)
25         # interactive shell
26         ls --color /tmp &>/dev/null && alias ls='ls --color=auto'
27         alias mv='mv -i'
28         alias vi='vim'
29         alias wget='wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"'
30         alias grep='grep --color=tty -d skip'
31         alias bterm='xterm -fn "-adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1"'
32         #alias mplayer3="mplayer -fs \
33 #-vo gl2 \
34 #-dr -noslices -xineramascreen 1 \
35 #-ao jack,port=4444,estimate,noautostart"
36         alias mplayer="mplayer -fs \
37 -vo gl2 \
38 -dr -noslices -xineramascreen 1"
39         #alias mplayer="mplayer -fs \
40 #-vo gl:yuv=2:noati-hack:rectangle=0:noaspect \
41 #-dr -noslices -xineramascreen 1"
42         export PATH="${PATH}:${HOME}/cmccabe-bin"
43         export EDITOR="/usr/bin/vim"
44         export CSCOPE_EDITOR="${EDITOR}"
45         ;;
46 *)
47         # non-interactive shell
48         ;;
49 esac
50
51 # Perturb malloc so that we spot bugs quicker!
52 export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))