# .profile
# ========

test -r /sw/bin/init.sh && . /sw/bin/init.sh

# pip bash completion
# -------------------

_pip_completion()
{
    COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip

# To use Homebrew's directories rather than ~/.pyenv add to your profile:
# ----------------------------------------------------------------------

export PYENV_ROOT=/usr/local/var/pyenv
  

# Python virtual environments
# ---------------------------

# first point to the Python environment we want to use
export VIRTUALENVWRAPPER_PYTHON=`which python`
export VIRTUALENVWRAPPER_VIRTUALENV=`which virtualenv`

# then set up a virtual environments directory
export WORKON_HOME=~/.virtualenvs

if which pyenv-virtualenv-init > /dev/null;
	then eval "$(pyenv virtualenv-init -)";
fi

# Load RVM into a shell session *as a function*
# ---------------------------------------------
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
# -------------------------------------------------------------------------------
# export PATH=$HOME/.rvm/bin:$PATH
