Mercurial > ec-dotfiles
comparison rc/bashrc @ 435:4a71d0b1a4c6
Different, more compact style of prompt.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 30 Dec 2012 01:56:46 +0700 |
parents | a0f95c4f360c |
children | d6ac822569c4 |
comparison
equal
deleted
inserted
replaced
434:a0f95c4f360c | 435:4a71d0b1a4c6 |
---|---|
211 case "${TERM}" in | 211 case "${TERM}" in |
212 xterm*|screen*|dtterm*) | 212 xterm*|screen*|dtterm*) |
213 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" | 213 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" |
214 # DragonFly's Bash is a bit buggy. | 214 # DragonFly's Bash is a bit buggy. |
215 if [ "$(uname)" != "DragonFly" ]; then | 215 if [ "$(uname)" != "DragonFly" ]; then |
216 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[0;36m\]\w\[\e[0m\]]\$ ' | 216 PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;36m\]\w\[\e[0m\]\$ ' |
217 fi | 217 fi |
218 ;; | 218 ;; |
219 esac | 219 esac |
220 | 220 |
221 if command -v vim > /dev/null 2>&1; then | 221 if command -v vim > /dev/null 2>&1; then |