Mercurial > ec-dotfiles
comparison rc/bash @ 264:c6c322c57e0e
Paths for MySQL, instabreak for mercurial.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 24 Nov 2011 12:24:05 +0700 |
parents | 9481aac47ac5 |
children | 20ff9a9d11f0 69b9cbf9f3c0 |
comparison
equal
deleted
inserted
replaced
263:640836861a75 | 264:c6c322c57e0e |
---|---|
103 # Custom application I usually install and safe to prioritize | 103 # Custom application I usually install and safe to prioritize |
104 for i in {"${HOME}/app","/opt"}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do | 104 for i in {"${HOME}/app","/opt"}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do |
105 [ -d "${i}" ] && PATH="${i}:${PATH}" | 105 [ -d "${i}" ] && PATH="${i}:${PATH}" |
106 done | 106 done |
107 | 107 |
108 # MySQL in common locations highest priority since new = better. Also no compatibility problem. | |
109 # Cluster is superset of Enterprise/GPL so it gets highest priority. | |
110 # And use only one. | |
111 for mydir in {"${HOME}",/app{,s},/opt}/mysql/{{cluster,enterprise}/mysql/,}bin; do | |
112 if [ -d "${mydir}" ]; then | |
113 PATH="${mydir}:${PATH}" | |
114 break | |
115 fi | |
116 done | |
117 | |
108 # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority. | 118 # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority. |
119 # And use only one. | |
109 for hgdir in {"${HOME}/app","/opt"}/mercurial; do | 120 for hgdir in {"${HOME}/app","/opt"}/mercurial; do |
110 [ -x "${hgdir}/hg" ] && PATH="${PATH}:${hgdir}" | 121 if [ -x "${hgdir}/hg" ]; then |
122 PATH="${PATH}:${hgdir}" | |
123 break | |
124 fi | |
111 done | 125 done |
112 | 126 |
113 case "${TERM}" in | 127 case "${TERM}" in |
114 xterm*|screen*|dtterm*) | 128 xterm*|screen*|dtterm*) |
115 PROMPT_COMMAND='echo -ne "\033]0;'"$(who am i | cut -d ' ' -f 1)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" | 129 PROMPT_COMMAND='echo -ne "\033]0;'"$(who am i | cut -d ' ' -f 1)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" |