comparison 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
comparison
equal deleted inserted replaced
280:758dd58bb3cb 282:9d5247df20e9
133 fi 133 fi
134 done 134 done
135 135
136 # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority. 136 # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority.
137 # And use only one. 137 # And use only one.
138 for hgdir in {"${HOME}/app","/opt"}/mercurial; do 138 for hgdir in {"${HOME}/app","/opt"}/mercurial{,/bin}; do
139 if [ -x "${hgdir}/hg" ]; then 139 hgbin="${hgdir}/hg"
140 if [ -x "${hgbin}" ]; then
140 PATH="${PATH}:${hgdir}" 141 PATH="${PATH}:${hgdir}"
142 alias nhg="${hgbin}"
141 break 143 break
142 fi 144 fi
143 done 145 done
144 146
145 for supbindir in {"${HOME}/app","/opt"}/supervisor{,d}/bin; do 147 for supbindir in {"${HOME}/app","/opt"}/supervisor{,d}/bin; do