comparison rc/bashrc @ 543:8b884bbb1d05

Rename `app` to `apps`.
author edogawaconan <me@myconan.net>
date Sat, 17 Jan 2015 20:10:45 +0900
parents 77c1f9e624a3
children daed3e2c9651
comparison
equal deleted inserted replaced
542:fc429d39ce9e 543:8b884bbb1d05
188 unset _has_posix_grep 188 unset _has_posix_grep
189 unset _ls 189 unset _ls
190 unset _grep 190 unset _grep
191 191
192 # Custom application I usually install and safe to prioritize 192 # Custom application I usually install and safe to prioritize
193 for i in {"${HOME}/app","/opt"{,"/${USER:-$LOGNAME}"}}/{tmux,ruby19,python26,node,tarsnap,symon,nginx,p7zip}/{bin,sbin}; do 193 for i in {"${HOME}/apps","/opt"{,"/${USER:-$LOGNAME}"}}/{tmux,ruby19,python26,node,tarsnap,symon,nginx,p7zip}/{bin,sbin}; do
194 [ -d "${i}" ] && PATH="${i}:${PATH}" 194 [ -d "${i}" ] && PATH="${i}:${PATH}"
195 done 195 done
196 # New(?) rubygems bin PATH 196 # New(?) rubygems bin PATH
197 for i in {"${HOME}/app","/opt"{,"/${USER:-$LOGNAME}"}}/ruby19/lib/ruby/gems/1.9.1/bin; do 197 for i in {"${HOME}/apps","/opt"{,"/${USER:-$LOGNAME}"}}/ruby19/lib/ruby/gems/1.9.1/bin; do
198 [ -d "${i}" ] && PATH="${i}:${PATH}" 198 [ -d "${i}" ] && PATH="${i}:${PATH}"
199 done 199 done
200 200
201 # MySQL in common locations highest priority since new = better. Also no compatibility problem. 201 # MySQL in common locations highest priority since new = better. Also no compatibility problem.
202 # Cluster is superset of Enterprise/GPL so it gets highest priority. 202 # Cluster is superset of Enterprise/GPL so it gets highest priority.
203 # And use only one. 203 # And use only one.
204 for mydir in {"${HOME}",/app{,s},/opt}/mysql/{{cluster,enterprise}/mysql/,}bin; do 204 for mydir in {"${HOME}",/apps,/opt}/mysql/{{cluster,enterprise}/mysql/,}bin; do
205 if [ -d "${mydir}" ]; then 205 if [ -d "${mydir}" ]; then
206 PATH="${mydir}:${PATH}" 206 PATH="${mydir}:${PATH}"
207 break 207 break
208 fi 208 fi
209 done 209 done
210 210
211 # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority. 211 # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority.
212 # And use only one. 212 # And use only one.
213 for hgdir in {"${HOME}/app","/opt"}/mercurial{,/bin}; do 213 for hgdir in {"${HOME}/apps","/opt"}/mercurial{,/bin}; do
214 hgbin="${hgdir}/hg" 214 hgbin="${hgdir}/hg"
215 if [ -x "${hgbin}" ]; then 215 if [ -x "${hgbin}" ]; then
216 PATH="${PATH}:${hgdir}" 216 PATH="${PATH}:${hgdir}"
217 alias nhg="${hgbin}" 217 alias nhg="${hgbin}"
218 break 218 break
219 fi 219 fi
220 done 220 done
221 221
222 for supbindir in {"${HOME}/app","/opt"}/supervisor{,d}/bin; do 222 for supbindir in {"${HOME}/apps","/opt"}/supervisor{,d}/bin; do
223 if [ -d "${supbindir}" ]; then 223 if [ -d "${supbindir}" ]; then
224 PATH="${PATH}:${supbindir}" 224 PATH="${PATH}:${supbindir}"
225 break 225 break
226 fi 226 fi
227 done 227 done