Skip to content

Instantly share code, notes, and snippets.

@drslump
Created October 29, 2013 17:33
Show Gist options
  • Save drslump/7219154 to your computer and use it in GitHub Desktop.
Save drslump/7219154 to your computer and use it in GitHub Desktop.
Place this file in your path and give it executable permissions
#!/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