Skip to content

Instantly share code, notes, and snippets.

@benhodgson
Created August 6, 2010 17:07
Show Gist options
  • Save benhodgson/511624 to your computer and use it in GitHub Desktop.
Save benhodgson/511624 to your computer and use it in GitHub Desktop.
PROJECTS_DIR=$HOME/projects
function workon {
cd $PROJECTS_DIR/"$1"/;
cd "$1" > /dev/null 2>&1 && source ../bin/activate > /dev/null 2>&1;
}
complete -W '`ls $PROJECTS_DIR`' workon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment