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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user