1

Is it possible to get the following to work?

[ui]
ssh = ~\bin\ssh -i ~\.ssh\my_key

Using the Googles implies it must work for some people (Linux users?), but it's definitely not working for me.

I'd also accept $HOME (or some variant), but I can't find the right syntax.

moswald
  • 11,491
  • 7
  • 52
  • 78

1 Answers1

3

what if you replace ~ with %USERPROFILE% (which, I believe is the equivalent to $HOME in Windows)?

smooth reggae
  • 2,189
  • 13
  • 14
  • Aha! Thanks. I do almost everything in Powershell, so `$HOME` was expanding in my tests. However internally Mercurial wasn't expanding it properly. I had forgotten about `USERPROFILE`. – moswald Apr 24 '12 at 19:43