# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If running interactively, then:
if [ "$PS1" ]; then
    # ****************** changes daily *****************
    export TERM=rxvt
    export PYTHONSTARTUP=.pythonrc.py
    export CVS_RSH=/usr/bin/ssh
    export RSYNC_RSH=/usr/bin/ssh
    export SMLNJ_HOME=/usr/lib/smlnj
    #just path stuff

    # ************ stuff that's ALWAYS true **************
    #so I don't have to specify it everytime I use rsync
    eval `dircolors -b`
    export EDITOR="/usr/bin/vim"
    alias ls='ls --color=auto'
    alias emacs='emacs -nw'
    alias startx='exec startx'
    alias sshhome='ssh -p2223 boomer-box.hopto.org'
    alias sshunix='ssh unix39.andrew.cmu.edu'
    alias sml='rlwrap sml'
    alias ocaml='rlwrap ocaml'
    alias mutt='clear && mutt'
    alias irssi='torify irssi'
    
    # no crash dumps
		ulimit -c0

    #### paranoia
    # this sets all http traffic to pass through privoxy
    export http_proxy=http://127.0.0.1:8118/
    export HTTP_PROXY=$http_proxy
    export https_proxy=https://127.0.0.1:8118/
    export HTTPS_PROXY=$https_proxy
    if paranoid; then
      # this sets all http traffic to pass through privoxy_tor
      export http_proxy=http://127.0.0.1:8119/
      export HTTP_PROXY=$http_proxy
      export https_proxy=https://127.0.0.1:8119/
      export HTTPS_PROXY=$https_proxy
      # this blocks all ftp traffic... oh well
      export ftp_proxy=ftp://127.0.0.1:9050/
      export FTP_PROXY=$ftp_proxy
      TSOCKS_CONF_FILE=/etc/tor/tor-tsocks.conf
      export TSOCKS_CONF_FILE 
      source /usr/bin/tsocks on
    fi

    # set a fancy prompt
    COLOR="36"
    if test "$SSH_CLIENT"; then
      COLOR="37"
    fi
    PS1="\[\e[${COLOR}m\]\j,"'$? me@\h:\W\$ \[\e[0m\]'

#cat $HOME/tmp/fortune
#(fortune -a > $HOME/tmp/fortune &) >/dev/null
fi
