Mercurial > ec-dotfiles
comparison rc/bash @ 261:00ecebc73c73
Path rearrange.
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Thu, 24 Nov 2011 11:12:04 +0700 |
| parents | 6bdfe1746bb1 |
| children | 9481aac47ac5 |
comparison
equal
deleted
inserted
replaced
| 260:6bdfe1746bb1 | 261:00ecebc73c73 |
|---|---|
| 13 | 13 |
| 14 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" | 14 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" |
| 15 | 15 |
| 16 _org_path="${PATH}" | 16 _org_path="${PATH}" |
| 17 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | 17 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" |
| 18 | |
| 19 # Custom application I usually install and safe to prioritize | |
| 20 for i in {"${HOME}/app","/opt"}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do | |
| 21 [ -d "${i}" ] && PATH="${i}:${PATH}" | |
| 22 done | |
| 23 | 18 |
| 24 shopt -s histappend | 19 shopt -s histappend |
| 25 PROMPT_COMMAND='history -a' | 20 PROMPT_COMMAND='history -a' |
| 26 export HISTFILESIZE=10000 | 21 export HISTFILESIZE=10000 |
| 27 export HISTCONTROL=ignoredups | 22 export HISTCONTROL=ignoredups |
| 102 unset _has_rm_I | 97 unset _has_rm_I |
| 103 unset _has_gnu_ls | 98 unset _has_gnu_ls |
| 104 unset _has_gnu_grep | 99 unset _has_gnu_grep |
| 105 unset _ls | 100 unset _ls |
| 106 | 101 |
| 102 # Custom application I usually install and safe to prioritize | |
| 103 for i in {"${HOME}/app","/opt"}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do | |
| 104 [ -d "${i}" ] && PATH="${i}:${PATH}" | |
| 105 done | |
| 106 | |
| 107 # Mercurial is optional since it will be inconsistent with ssh ... hg if this one gets priority. | |
| 108 for hgdir in {"${HOME}/app","/opt"}/mercurial; do | |
| 109 [ -x "${hgdir}/hg" ] && PATH="${PATH}:${hgdir}" | |
| 110 done | |
| 107 | 111 |
| 108 case "${TERM}" in | 112 case "${TERM}" in |
| 109 xterm*|screen*|dtterm*) | 113 xterm*|screen*|dtterm*) |
| 110 PROMPT_COMMAND='echo -ne "\033]0;'"$(who am i | cut -d ' ' -f 1)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" | 114 PROMPT_COMMAND='echo -ne "\033]0;'"$(who am i | cut -d ' ' -f 1)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" |
| 111 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' | 115 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' |
