This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
User:Aries97/Scratch Pad/Installation Tweaks
From Gentoo Wiki (test)
< User:Aries97 | Scratch Pad
Jump to:navigation
Jump to:search
Root's PS1
To change roots PS1 environment variable to include the full path instead of the current working directory. Edit /etc/bash/bashrc starting on line 87 you will find this:
CODE
if ${use_color} ; then if [[ ${EUID} == 0 ]] ; then PS1+='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' else PS1+='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' fi
Change the 'W' to a 'w'.