comparison rc/bashrc @ 434:a0f95c4f360c

Full path on prompt.
author Edho Arief <edho@myconan.net>
date Sun, 30 Dec 2012 01:56:20 +0700
parents 9d016276d889
children 4a71d0b1a4c6
comparison
equal deleted inserted replaced
433:0a5872319e83 434:a0f95c4f360c
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