# HG changeset patch # User Edho Arief # Date 1322112245 -25200 # Node ID c6c322c57e0ee917903662cca7d52c82eae22937 # Parent 640836861a75f9fcf6799440f2590c55ff9c6ad6 Paths for MySQL, instabreak for mercurial. diff -r 640836861a75 -r c6c322c57e0e rc/bash --- a/rc/bash Thu Nov 24 12:16:27 2011 +0700 +++ b/rc/bash Thu Nov 24 12:24:05 2011 +0700 @@ -105,9 +105,23 @@ [ -d "${i}" ] && PATH="${i}:${PATH}" done +# MySQL in common locations highest priority since new = better. Also no compatibility problem. +# Cluster is superset of Enterprise/GPL so it gets highest priority. +# And use only one. +for mydir in {"${HOME}",/app{,s},/opt}/mysql/{{cluster,enterprise}/mysql/,}bin; do + if [ -d "${mydir}" ]; then + PATH="${mydir}:${PATH}" + break + fi +done + # 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 - [ -x "${hgdir}/hg" ] && PATH="${PATH}:${hgdir}" + if [ -x "${hgdir}/hg" ]; then + PATH="${PATH}:${hgdir}" + break + fi done case "${TERM}" in