Skip to content

Instantly share code, notes, and snippets.

@hitsumabushi
Created April 5, 2015 06:21
Show Gist options
  • Save hitsumabushi/96af3e99bb5efe2676f9 to your computer and use it in GitHub Desktop.
Save hitsumabushi/96af3e99bb5efe2676f9 to your computer and use it in GitHub Desktop.
pyenv&virtualenv for zsh
# For zshrc setting
echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.zshrc
echo 'if [ -d "${PYENV_ROOT}" ]; then' >> ~/.zshrc
echo ' export PATH=${PYENV_ROOT}/bin:$PATH' >> ~/.zshrc
echo ' eval "$(pyenv init -)"' >> ~/.zshrc
echo 'fi' >> ~/.zshrc
exec $SHELL -l
# Install pyenv & virtualenv
cd ~
git clone git://github.com/yyuu/pyenv.git .pyenv
cd $PYENV_ROOT/plugins
git clone git://github.com/yyuu/pyenv-virtualenv.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment