# HG changeset patch # User Edho Arief # Date 1324480020 -25200 # Node ID 87ce8cfdb8d4c1fa2826f4be091c5c6e9dbd1aec # Parent 33d0cb669e1fadb156af212ad9f786701f9c7b04 Alias for newer hg. Also more search path. diff -r 33d0cb669e1f -r 87ce8cfdb8d4 rc/bash --- a/rc/bash Thu Dec 08 19:12:53 2011 +0700 +++ b/rc/bash Wed Dec 21 22:07:00 2011 +0700 @@ -136,9 +136,11 @@ # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority. # And use only one. -for hgdir in {"${HOME}/app","/opt"}/mercurial; do - if [ -x "${hgdir}/hg" ]; then +for hgdir in {"${HOME}/app","/opt"}/mercurial{,/bin}; do + hgbin="${hgdir}/hg" + if [ -x "${hgbin}" ]; then PATH="${PATH}:${hgdir}" + alias nhg="${hgbin}" break fi done