Source

dotfiles / bashrc

Full commit
# set some environment variables
export EDITOR=vim
export CVS_RSH=ssh
export SVNEDITOR=vim
export PYTHONSTARTUP=/home/even/.pystartup
export PYTHONPATH=/home/even/repos/pypy/:/home/even/repos/haskell-python/
#export PYPYLOG=jit-log-opt:jit.log

# Virtualenvwrapper lazy loading
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
#source /usr/local/bin/virtualenvwrapper_lazy.sh

# Aliases
alias ls='ls --color=auto --show-control-chars --group-directories-first --hide=*.pyc'

# Prevent duplicate history
HISTCONTROL=erasedups

# wtf does this do?
stty erase ^?

# Set a fancy prompt
PS1="[\[\033[0;33m\]""\w""\[\033[0m\]""]$ "

# If this is an xterm set the title to user@host:dir
case $TERM in
	xterm*| screen*| Eterm*)
		PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
		;;
	*)
		unset PROMPT_COMMAND
	;;
esac

# Use bash-completion, if available
if [ -f /etc/bash_completion ]; then
  . /etc/bash_completion
fi

# Git autocompletation
if [ -f ~/.git-completion.sh ]; then
    source ~/.git-completion.sh
fi