Last active
May 20, 2018 09:58
-
-
Save ShinJJang/dcd9a370ab3f912c6f466a4a65833122 to your computer and use it in GitHub Desktop.
Example zsh-autoenv for django with pyenv-virtualenv
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
# When enter project folder | |
pyenv activate [your-pyenv-virtualenv] | |
echo $(pyenv versions) | |
pip freeze > requirements.txt | |
ll requirements.txt |
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
# 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