Mercurial > ec-dotfiles
diff rc/bashrc @ 584:4130d41c6acb
Support for msys' USERNAME variable
author | nanaya <me@myconan.net> |
---|---|
date | Wed, 09 Mar 2016 15:37:53 +0900 |
parents | 3e051a850ecf |
children | 394f19c180a2 |
line wrap: on
line diff
--- a/rc/bashrc Tue Feb 23 15:52:19 2016 +0900 +++ b/rc/bashrc Wed Mar 09 15:37:53 2016 +0900 @@ -233,7 +233,7 @@ PS1='\u@\h:\w\$ ' case "${TERM}" in xterm*|screen*|dtterm*) - PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" + PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-${LOGNAME:-$USERNAME}}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" if [ "$(id -u)" = "0" ]; then PS1='\[\e[1;31m\]\u@\h:\w\$\[\e[0m\] ' elif [ "$(uname)" != "DragonFly" ]; then