Mercurial > ec-dotfiles
changeset 584:4130d41c6acb
Support for msys' USERNAME variable
author | nanaya <me@myconan.net> |
---|---|
date | Wed, 09 Mar 2016 15:37:53 +0900 |
parents | 0d928126fcf6 |
children | e9f7eeb4a0f1 |
files | rc/bashrc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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