Skip to content

Instantly share code, notes, and snippets.

@oinume
Last active December 16, 2015 09:28
Show Gist options
  • Save oinume/5412630 to your computer and use it in GitHub Desktop.
Save oinume/5412630 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -x
export PYENV_ROOT=/usr/local/pyenv
cd /usr/local/
git clone https://github.com/yyuu/pyenv.git pyenv
cd pyenv/plugins
git clone https://github.com/yyuu/pyenv-virtualenv
_SHELL=$(basename $(echo $SHELL))
set +x
cat <<'EOF'
if [ -d /usr/local/pyenv ]; then
export PYENV_ROOT=/usr/local/pyenv
source $PYENV_ROOT/completions/pyenv.$_SHELL
fi
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment