bashrc: Use full current working directory path for root as well

* There's no real reason to show just the current
  working directory basename for root, is there?

Change-Id: I5c275a94dacdcd1f375422de604ad929c8459625
This commit is contained in:
LuK1337
2020-05-24 00:53:01 +02:00
parent c911034608
commit 74a0f0ca8c

View File

@@ -32,7 +32,7 @@ use_color=false
# enable colorful terminal # enable colorful terminal
if [[ ${EUID} == 0 ]] ; then if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]${HOSTNAME:=$(hostname)}\[\033[01;34m\] \W \$\[\033[00m\] ' PS1='\[\033[01;31m\]${HOSTNAME:=$(hostname)}\[\033[01;34m\] \w \$\[\033[00m\] '
else else
PS1='\[\033[01;32m\]${USER:=$(id \-un)}@${HOSTNAME:=$(hostname)}\[\033[01;34m\] \w \$\[\033[00m\] ' PS1='\[\033[01;32m\]${USER:=$(id \-un)}@${HOSTNAME:=$(hostname)}\[\033[01;34m\] \w \$\[\033[00m\] '
fi fi