diff --git a/bashrc b/bashrc index e9664c6fb05bcc399a5916c6883b98e20245dd0f..1b84fbf1e43a5eef6d8ae906edc9552cbd5e2915 100644 --- a/bashrc +++ b/bashrc @@ -51,19 +51,16 @@ fi if [ "$color_prompt" = yes ] && [ "`id -u`" -eq 0 ]; then # Red prompt for root -# PS1='${debian_chroot:+($debian_chroot)}\h:\[\033[31m\][\w]\[\033[00m\] \$ ' - PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[31m\][\w]\[\033[00m\]' - PS1_POST=' \$ ' - PS1="$PS1_PRE$PS1_POST" + PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[31m\][\w]\[\033[0m\]' else # Default prompt for everyone else -# PS1='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\] \$ ' - PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\]' - PS1_POST=' \$ ' - PS1="$PS1_PRE$PS1_POST" + PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[34m\][\w]\[\033[0m\]' fi unset color_prompt force_color_prompt +PS1_POST=' \$ ' +PS1="$PS1_PRE$PS1_POST" + # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) diff --git a/bashrc.local.example b/bashrc.local.example index d4e62ceb591bb9a62432541eb1761637844f77f6..80ae4fc69cfab2a64d14d9ff78cc1bc2461dad9c 100644 --- a/bashrc.local.example +++ b/bashrc.local.example @@ -14,7 +14,7 @@ if [ -f ~/.git-prompt.sh ]; then fi if [ -z ${PS1_PRE+x} ] && [ -z ${PS1_POST+x} ]; then - PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\]' + PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[34m\][\w]\[\033[0m\]' PS1_POST=' \$ ' fi