Advertisement
Guest User

Untitled

a guest
May 2nd, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. # pyenv
  2. export PYENV_ROOT="$HOME/.pyenv"
  3. if [ -z `echo $PATH | grep "${PYENV_ROOT}/bin"` ]; then
  4.     if [ -d "${PYENV_ROOT}" ]; then
  5.         export PATH="${PYENV_ROOT}/bin:${PATH}"
  6.         eval "$(pyenv init -)"
  7.     fi
  8.     if [ -d $PYENV_ROOT/plugins/pyenv-virtualenv ]; then
  9.         eval "$(pyenv virtualenv-init -)"
  10.     fi
  11. fi
  12. function pyenv_upgrade() {
  13.     echo -n "pyenv: "
  14.     (cd $PYENV_ROOT 2>/dev/null && git pull)
  15.  
  16.     echo -n "pyenv-virtualenv: "
  17.     if [ -d $PYENV_ROOT/plugins/pyenv-virtualenv ]; then
  18.         (cd $PYENV_ROOT/plugins/pyenv-virtualenv 2>/dev/null && git pull)
  19.     fi
  20. }
  21. ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement