Created
November 20, 2012 22:02
-
-
Save jorgebastida/4121542 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interessante, eu uso
autojump
eautoenv
para ter efeito parecido :Dj nomedoprojeto
Quando entra no diretório executa os comandos para aquele evento, por exemplo
workon nomedoprojeto