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