User:Aries97/Scratch Pad/Installation Tweaks

From Gentoo Wiki
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'.