Your .hgrc
needs to be at ~/.hgrc
, just like on other unix-like OSes (assuming you're using the standard Mercurial installation and not something like MacHg). You can use /etc/mercurial
, but in that case the file is named hgrc
, and not .hgrc
.
You can also ask hg
this question directly, and it should give you the most up-to-date answer for your installation:
$ hg help config
Configuration Files
Mercurial reads configuration data from several files, if they exist. Below we list the most specific file first.
On Unix, these files are read:
- "<repo>/.hg/hgrc"
- "$HOME/.hgrc"
- "/etc/mercurial/hgrc"
- "/etc/mercurial/hgrc.d/*.rc"
- "<install-root>/etc/mercurial/hgrc"
- "<install-root>/etc/mercurial/hgrc.d/*.rc"