Mercurial > ec-dotfiles
comparison rc/bash @ 257:adcea08f6807
Always correct username, static hostname.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Wed, 16 Nov 2011 22:31:35 +0000 |
parents | 4a0f963a3ff1 |
children | 6bdfe1746bb1 |
comparison
equal
deleted
inserted
replaced
256:227f4d463b5d | 257:adcea08f6807 |
---|---|
105 unset _ls | 105 unset _ls |
106 | 106 |
107 | 107 |
108 case "${TERM}" in | 108 case "${TERM}" in |
109 xterm*|screen*|dtterm*) | 109 xterm*|screen*|dtterm*) |
110 PROMPT_COMMAND='echo -ne "\033]0;${LOGNAME}@${HOSTNAME}: ${PWD}\007";'"${PROMPT_COMMAND}" | 110 PROMPT_COMMAND='echo -ne "\033]0;'"$(id -un)@$(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\]]\$ ' | 111 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' |
112 ;; | 112 ;; |
113 *) | 113 *) |
114 PS1='[\u@\h \W]\$ ' | 114 PS1='[\u@\h \W]\$ ' |
115 ;; | 115 ;; |