Skip to content

Instantly share code, notes, and snippets.

@colwilson
Created August 8, 2013 09:43
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 colwilson/6183264 to your computer and use it in GitHub Desktop.
Save colwilson/6183264 to your computer and use it in GitHub Desktop.
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