changeset 206:5599a864b888

hgrc: look for a machine-specific hgrc as well
author Augie Fackler <durin42@gmail.com>
date Tue, 11 May 2010 15:32:17 -0500
parents e2579eeb06ba
children c965d5dbd868
files .hgignore .shell.d/50.common_env.sh
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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).*
--- 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)"