#
# /etc/bash.bashrc: System-wide rc file for interactive bash(1) shells.
-# Written 2003-2013 by Alexander Barton (alex@barton.de)
+# Written 2003-2014 by Alexander Barton (alex@barton.de)
#
[ -e ~/.ConfigScripts.debug ] && echo " >> /etc/bash.bashrc ..."
}
PS1="${COLOR_PREPOSTTXT}${PS1_BEGIN:-<}"
-[ "$UID" -eq 0 ] \
+[ "$LOGNAME" = "root" ] \
|| PS1="${PS1}${COLOR_USER}\u${COLOR_AT}@"
PS1="${PS1}${COLOR_HOST}\h"
PS1="${PS1}${COLOR_COLON}:"
PS1="${PS1}${COLOR_PATH}\$(PS1_Path) "
PS1="${PS1}${COLOR_HISTORY}\!"
PS1="${PS1}${COLOR_PREPOSTTXT}${PS1_END:->}${COLOR_RESET} "
-[ "$UID" -eq 0 ] \
+[ "$LOGNAME" = "root" ] \
&& PS1="${PS1}${COLOR_PROMPT_ROOT}\\\$${COLOR_RESET} " \
|| PS1="${PS1}${COLOR_PROMPT_USER}\\\$${COLOR_RESET} "
[ "$(type -t __git_ps1)" ] \
# If this is an xterm set the title to user@host:dir
case $TERM in
xterm*|rxvt|screen)
- PROMPT_COMMAND='printf "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+ PROMPT_COMMAND='printf "\033]0;${LOGNAME}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;