# HG changeset patch # User Augie Fackler # Date 1308421275 18000 # Node ID 615fee88aa089adf8ecc14603d2cfdf688a1df78 # Parent b9e92b79bb003006bf8b73bc8cab01c460046b3c HGRCPATH: auto-include opendiff configuration if opendiff is on PATH. 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 @@ -19,4 +19,8 @@ insert_element_into_var /opt/hg/lib/pyth insert_path_element /opt/hg/bin export HGRCPATH="$HOME/.hgrc:$HOME/.private/hgrc:$HOME/.hgrc-$(hostname)" +which opendiff > /dev/null +if [ $? = 0 ] ; then + export HGRCPATH="$HGRCPATH:$HOME/unixSoft/hgrc-opendiff" +fi export LESS=FSRX