Skip to content

Instantly share code, notes, and snippets.

@Atala
Created September 25, 2014 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Atala/b9e09dc9d752a8e8aa7a to your computer and use it in GitHub Desktop.
Save Atala/b9e09dc9d752a8e8aa7a to your computer and use it in GitHub Desktop.
Snippet for postmkvirtualenv hook
#!/bin/bash
# This hook is sourced after a new virtualenv is activated.
proj_name=$(basename $VIRTUAL_ENV)
mkdir $HOME/src/$proj_name
add2virtualenv $HOME/src/$proj_name
cd $HOME/src/$proj_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment