Skip to content

Instantly share code, notes, and snippets.

@ShinJJang
Last active May 20, 2018 09:58
Show Gist options
  • Save ShinJJang/dcd9a370ab3f912c6f466a4a65833122 to your computer and use it in GitHub Desktop.
Save ShinJJang/dcd9a370ab3f912c6f466a4a65833122 to your computer and use it in GitHub Desktop.
Example zsh-autoenv for django with pyenv-virtualenv
# When enter project folder
pyenv activate [your-pyenv-virtualenv]
echo $(pyenv versions)
pip freeze > requirements.txt
ll requirements.txt
# When leave project folder
# /Users/.../projects/project $ cd ..
pyenv deactivate
echo $(pyenv versions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment