about some code he added to his shell environment to look at the
directory each time he runs ``cd``. If it finds a ``.venv`` file, it
activates the environment named within. On leaving that directory,
the current virtualenv is automatically deactivated.
+Simply add this bit to your ``.bashrc``
+ cd "$@" && has_virtualenv
`Harry Marr <http://www.blogger.com/profile/17141199633387157732>`__
wrote a similar function that works with `git repositories