comparison rc/bash @ 250:4a8d81743728

Automated bash color prompt.
author Edho Arief <edho@myconan.net>
date Tue, 08 Nov 2011 22:31:10 +0700
parents 68b765e9cf76
children 4fe8668e3ef0
comparison
equal deleted inserted replaced
249:68b765e9cf76 250:4a8d81743728
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 18
19 PS1='[\u@\h \W]\$ ' 19 case "${TERM}" in
20 #PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' 20 xterm*|dtterm*|screen*)
21 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ '
22 ;;
23 *)
24 PS1='[\u@\h \W]\$ '
25 ;;
26 esac
21 27
22 shopt -s histappend 28 shopt -s histappend
23 PROMPT_COMMAND='history -a' 29 PROMPT_COMMAND='history -a'
24 export HISTFILESIZE=10000 30 export HISTFILESIZE=10000
25 export HISTCONTROL=ignoredups 31 export HISTCONTROL=ignoredups