# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# Set up local paths - check $SHLVL to avoid continually appending.
if [ $SHLVL -eq 1 ]; then
   export PATH=${HOME}/local/bin:${PATH}
fi

# Set up Perl paths ($SHLVL is 1 when we first log in, 2 when we're in screen).
if [ $SHLVL -lt 3 ]; then
  eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
fi

# Avoid promptless crontab removal.
alias crontab='crontab -i'

# Make a nice prompt that tells us where we are.
export PS1='\u@\h:\w\$ '

# Choose an editor.  No drama.
export EDITOR='emacs'
