Created
October 29, 2013 17:33
-
-
Save drslump/7219154 to your computer and use it in GitHub Desktop.
Place this file in your path and give it executable permissions
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
#!/bin/sh | |
pyenv virtualenv "$1" | |
echo "Entering a new shell session with version '$1'" | |
echo "Press ctrl+d or exit to terminate it" | |
export PYENV_VERSION="$1" | |
$SHELL | |
echo "Destroying temp version '$1'" | |
pyenv uninstall -f "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment