Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Last active August 29, 2015 14:04
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 juanpabloaj/013ed0388a9fc11c57c5 to your computer and use it in GitHub Desktop.
Save juanpabloaj/013ed0388a9fc11c57c5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This hook is run after every virtualenv is activated.
# http://virtualenvwrapper.readthedocs.org/en/latest/scripts.html
cur_env=$(basename $VIRTUAL_ENV)
cddir=$HOME/src/$cur_env
if [[ -e $cddir ]]; then
echo "cd "$cddir
cd $cddir
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment