Mercurial > ec-dotfiles
diff 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 |
line wrap: on
line diff
--- a/rc/bash Thu Nov 24 09:42:16 2011 +0700 +++ b/rc/bash Thu Nov 24 11:07:25 2011 +0700 @@ -107,7 +107,7 @@ case "${TERM}" in xterm*|screen*|dtterm*) - PROMPT_COMMAND='echo -ne "\033]0;'"$(id -un)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" + PROMPT_COMMAND='echo -ne "\033]0;'"$(who am i | cut -d ' ' -f 1)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' ;; *)