Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Created June 3, 2011 19:34
Show Gist options
  • Save gabrielfalcao/1007007 to your computer and use it in GitHub Desktop.
Save gabrielfalcao/1007007 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This hook is run after every virtualenv is activated.
get_path_for() {
echo $HOME/$1/`echo $VIRTUAL_ENV | sed 's,.*/,,g'`
}
destination_path=`get_path_for Projetos`
if [ -e $destination_path ]; then
pushd $destination_path;
fi;
destination_path=`get_path_for Work`
if [ -e $destination_path ]; then
pushd $destination_path;
fi;
if [ -e scripts/qa-helpers ]; then
source scripts/qa-helpers
fi;
if [ -e scripts/git-helpers ]; then
source scripts/git-helpers
fi;
if [ -e scripts/helpers ]; then
source scripts/helpers
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment