Mercurial > ec-dotfiles
comparison rc/bash @ 260:6bdfe1746bb1
Solaris' id doesn't have `id -un`, use `who am i | cut -d ' ' -f 1` instead.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 24 Nov 2011 11:07:25 +0700 |
parents | adcea08f6807 |
children | 00ecebc73c73 |
comparison
equal
deleted
inserted
replaced
259:1e214a53237d | 260:6bdfe1746bb1 |
---|---|
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;'"$(id -un)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" | 110 PROMPT_COMMAND='echo -ne "\033]0;'"$(who am i | cut -d ' ' -f 1)@$(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 ;; |