amoffat/sh — pull request #206 by ppannuto (2014-11-23 22:48:16+00:00)
Title: Add a pushd context

I find that I write this little boilerplate all the time and I think
other sh users would find it useful as well. This simply creates a
context to run commands in another directory and ensures that the
original working directory will be returned to.

Usage:

```python
from sh import pushd, pwd

pwd()
with pushd('/tmp'):
pwd()
pwd()
```