comparison bash @ 60:be4d0b045487

[bash] LOGNAME instead of USER since the former is more widely available (ie. USER is not set after `sudo su -` on solaris).
author Edho Prima Arief <me@myconan.net>
date Thu, 05 May 2011 01:13:58 +0700
parents 757576a3fa79
children 996aa2f81721 29bd7f6ef58a
comparison
equal deleted inserted replaced
59:757576a3fa79 60:be4d0b045487
62 62
63 export PATH 63 export PATH
64 64
65 case "${TERM}" in 65 case "${TERM}" in
66 xterm*|screen*|dtterm) 66 xterm*|screen*|dtterm)
67 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' 67 PROMPT_COMMAND='echo -ne "\033]0;${LOGNAME}@${HOSTNAME}: ${PWD}\007"'
68 ;; 68 ;;
69 esac 69 esac
70 70
71 command -v vim > /dev/null 2>&1 && alias vi=vim 71 command -v vim > /dev/null 2>&1 && alias vi=vim
72 [ -f .ecos_bash.after ] && . .ecos_bash.after 72 [ -f .ecos_bash.after ] && . .ecos_bash.after