Created
September 25, 2014 13:38
-
-
Save Atala/b9e09dc9d752a8e8aa7a to your computer and use it in GitHub Desktop.
Snippet for postmkvirtualenv hook
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/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