Mercurial > ec-dotfiles
changeset 271:003b0c8870b3
As it turns out who am i doesn't respect current actual user. Replaced with ancient but better version. Either LOGNAME or USER. Whichever has value.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 24 Nov 2011 15:23:18 +0700 |
parents | 0e41725e7d38 |
children | 53bbc9673f87 cf23a637f3a5 5ef99c47e636 |
files | rc/bash |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rc/bash Thu Nov 24 15:21:33 2011 +0700 +++ b/rc/bash Thu Nov 24 15:23:18 2011 +0700 @@ -135,7 +135,7 @@ case "${TERM}" in xterm*|screen*|dtterm*) - PROMPT_COMMAND='echo -ne "\033]0;'"$(who am i | cut -d ' ' -f 1)@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" + PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(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\]]\$ ' ;; *)