Created
August 8, 2013 09:43
-
-
Save colwilson/6183264 to your computer and use it in GitHub Desktop.
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
cd() { | |
builtin cd "$@" | |
local status=$? | |
[ $status -eq 0 ] && ls | |
if [ -d "bin" ]; then | |
if [ -f "bin/activate" ]; then | |
builtin source ./bin/activate | |
echo virtualenv has been activated! | |
fi | |
fi | |
return $status | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment