diff rc/bash @ 282:9d5247df20e9

Merge
author Edho Arief <edho@myconan.net>
date Sat, 24 Dec 2011 23:44:52 +0700
parents 758dd58bb3cb 87ce8cfdb8d4
children 108e05eb9b5c
line wrap: on
line diff
--- a/rc/bash	Sat Dec 24 23:44:11 2011 +0700
+++ b/rc/bash	Sat Dec 24 23:44:52 2011 +0700
@@ -135,9 +135,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