# HG changeset patch # User Edho Arief # Date 1322107924 -25200 # Node ID 00ecebc73c733cc8482ac57f72a8c39d351a0248 # Parent 6bdfe1746bb1d39b3157f40b5fb78ddddac88695 Path rearrange. diff -r 6bdfe1746bb1 -r 00ecebc73c73 rc/bash --- a/rc/bash Thu Nov 24 11:07:25 2011 +0700 +++ b/rc/bash Thu Nov 24 11:12:04 2011 +0700 @@ -16,11 +16,6 @@ _org_path="${PATH}" export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" -# Custom application I usually install and safe to prioritize -for i in {"${HOME}/app","/opt"}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do - [ -d "${i}" ] && PATH="${i}:${PATH}" -done - shopt -s histappend PROMPT_COMMAND='history -a' export HISTFILESIZE=10000 @@ -104,6 +99,15 @@ unset _has_gnu_grep unset _ls +# Custom application I usually install and safe to prioritize +for i in {"${HOME}/app","/opt"}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do + [ -d "${i}" ] && PATH="${i}:${PATH}" +done + +# Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority. +for hgdir in {"${HOME}/app","/opt"}/mercurial; do + [ -x "${hgdir}/hg" ] && PATH="${PATH}:${hgdir}" +done case "${TERM}" in xterm*|screen*|dtterm*)