diff rc/bash @ 281:87ce8cfdb8d4

Alias for newer hg. Also more search path.
author Edho Arief <edho@myconan.net>
date Wed, 21 Dec 2011 22:07:00 +0700
parents 33d0cb669e1f
children 9d5247df20e9 5fbe9461efea
line wrap: on
line diff
--- 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