hellokitty111
5/7/2015 - 8:21 AM

pyenv

pyenv

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
alias grepipdb="grep -n 'import ipdb;' -R . | grep -v '#'"
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
pyenv ()
{
    local command;
    command="$1";
    if [ "$#" -gt 0 ]; then
        shift;
    fi;
    case "$command" in
        rehash | shell | virtualenvwrapper | virtualenvwrapper_lazy)
            eval "`pyenv "sh-$command" "$@"`"
        ;;
        *)
            command pyenv "$command" "$@"
        ;;
    esac
}
eval "$(pyenv init -)"