Created
April 5, 2015 06:21
-
-
Save hitsumabushi/96af3e99bb5efe2676f9 to your computer and use it in GitHub Desktop.
pyenv&virtualenv for zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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