A more generic tool for this type of function is direnv[<a href="http://direnv.net/" rel="nofollow">http://direnv.net/</a>].<p>I use direnv for example for setting per-directory Perl installation variables to keep my development environments separate.
I don't mean to be a fuddy-duddy, but I don't get it... How is this better/worse than doing...<p><pre><code> git config user.name Foobar
git config user.email foo@bar.com
</code></pre>
...which will set that config variable for the current repository only -- not global. I ended up do the a similar thing for a simple git pairing tool[1] that would let you set your name to two people, so that one could discern the pair from the commit logs<p>[1]:<a href="https://github.com/32bitkid/git-working-with" rel="nofollow">https://github.com/32bitkid/git-working-with</a>
heh. the last time i saw this implemented, it was called gas => <a href="https://github.com/walle/gas" rel="nofollow">https://github.com/walle/gas</a>