Using posh-git and posh-hg together

I use both Git and Mercurial for projects, as well as Powershell as a console for both. Both source control systems have awesome plugins in posh-git and posh-hg that provide nice statuses, tab expansions and so on. However, they don’t just automatically play nice with one another. I installed Github for Windows, and found that my posh-hg stuff went away.

However, thanks to this Stack Overflow answer, it’s easy to use both of these together. I cloned both repositories to my local box, and then just modified the script to point to that version:

Now I get both posh-hg and posh-git working together!

NDC 2012 presentations posted