# HG changeset patch # User Augie Fackler # Date 1273609937 18000 # Node ID 5599a864b888da04b98a23a17041e294836dc452 # Parent e2579eeb06ba01cd40d5abcb5f3c873fccdd6677 hgrc: look for a machine-specific hgrc as well diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -3,11 +3,12 @@ syntax:re # complex regex to ignore all but what I want from dotfiles ^\.(?!bashrc$|best_unicode|elisp|emacs$|gitconfig$|hg|inputrc$|ipython|irbrc$|pdbrc\.py$|python|screenrc$|shell\.d|vim|zfun|zsh) -# above RE fails to exclude viminfo +# above RE fails to exclude some ignorable things ^\.viminfo$ ^\.hg\. ^\.ipython/db$ ^\.python-eggs$ +^\.hgrc-[^/]+$ # above RE fails to exclude history or machine-specific files ^\..*(?=history|machine).* diff --git a/.shell.d/50.common_env.sh b/.shell.d/50.common_env.sh --- a/.shell.d/50.common_env.sh +++ b/.shell.d/50.common_env.sh @@ -21,4 +21,4 @@ insert_element_into_var /opt/hg/lib/pyth insert_path_element /opt/hg/bin -export HGRCPATH="$HOME/.hgrc:$HOME/.private/hgrc" +export HGRCPATH="$HOME/.hgrc:$HOME/.private/hgrc:$HOME/.hgrc-$(hostname)"