Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pyenv
- export PYENV_ROOT="$HOME/.pyenv"
- if [ -z `echo $PATH | grep "${PYENV_ROOT}/bin"` ]; then
- if [ -d "${PYENV_ROOT}" ]; then
- export PATH="${PYENV_ROOT}/bin:${PATH}"
- eval "$(pyenv init -)"
- fi
- if [ -d $PYENV_ROOT/plugins/pyenv-virtualenv ]; then
- eval "$(pyenv virtualenv-init -)"
- fi
- fi
- function pyenv_upgrade() {
- echo -n "pyenv: "
- (cd $PYENV_ROOT 2>/dev/null && git pull)
- echo -n "pyenv-virtualenv: "
- if [ -d $PYENV_ROOT/plugins/pyenv-virtualenv ]; then
- (cd $PYENV_ROOT/plugins/pyenv-virtualenv 2>/dev/null && git pull)
- fi
- }
- ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement