Created
August 28, 2013 11:24
-
-
Save vdboor/6365007 to your computer and use it in GitHub Desktop.
Switch to a directory when entering a virtualenv
This file contains 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 run after this virtualenv is activated. | |
root="$HOME/Sites/example.org/" | |
# Change to root unless already there. | |
if [[ "`pwd`" != "$root"* ]]; then | |
cd "$root" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment