comparison rc/bash @ 318:e15c84ae856d

solarized-compatible bash prompt.
author Edho Arief <edho@myconan.net>
date Sun, 18 Mar 2012 11:36:34 +0700
parents 64e2702d40ae
children e59a766d5fa3
comparison
equal deleted inserted replaced
317:64e2702d40ae 318:e15c84ae856d
163 done 163 done
164 164
165 case "${TERM}" in 165 case "${TERM}" in
166 xterm*|screen*|dtterm*) 166 xterm*|screen*|dtterm*)
167 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" 167 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}"
168 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' 168 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[0;34m\]\W\[\e[0m\]]\$ '
169 ;; 169 ;;
170 *) 170 *)
171 PS1='[\u@\h \W]\$ ' 171 PS1='[\u@\h \W]\$ '
172 ;; 172 ;;
173 esac 173 esac