Skip to content

Instantly share code, notes, and snippets.

@flyte
Last active August 29, 2015 14:17
Show Gist options
  • Save flyte/20c397e0152fd0cf2357 to your computer and use it in GitHub Desktop.
Save flyte/20c397e0152fd0cf2357 to your computer and use it in GitHub Desktop.
Add this to .bashrc to make functions to create and enable virtualenvs based on the current directory name.
mkenv() {
mkvirtualenv $(basename $(pwd))
}
wkon() {
workon $(basename $(pwd))
}
rmenv() {
rmvirtualenv $(basename $(pwd))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment