Skip to content

Instantly share code, notes, and snippets.

@jorgebastida
Created November 20, 2012 22:02
Show Gist options
  • Save jorgebastida/4121542 to your computer and use it in GitHub Desktop.
Save jorgebastida/4121542 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This hook is run after every virtualenv is activated.
projname=$(echo $VIRTUAL_ENV|awk -F'/' '{print $NF}')
projectdir=/Users/neo/Projects/${projname}
if [ -d $projectdir ]; then
cd $projectdir
fi
@fabiocerqueira
Copy link

Interessante, eu uso autojump e autoenv para ter efeito parecido :D

j nomedoprojeto

Quando entra no diretório executa os comandos para aquele evento, por exemplo workon nomedoprojeto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment