From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 15 Mar 2016 10:34:24 -0700 (PDT) From: Userx Xbw To: voidlinux Message-Id: Subject: changing terminal prompt when logged as su MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2314_1658889389.1458063264522" ------=_Part_2314_1658889389.1458063264522 Content-Type: multipart/alternative; boundary="----=_Part_2315_451238495.1458063264522" ------=_Part_2315_451238495.1458063264522 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I get the # when ever I log into terminal as su how do I change it to show [root@domanName]currentDir# ? I've added a /etc/bashrc and this inside of it. #if [[ $EUID == 0 ]] ; then if [[ id == 0 ]] ; then export PS1="\[\e[41m\]\u\[\e[m\]@\[\e[41m\]\h\[\e[m\]\w# " else export PS1="\u@\h\w $" fi this only shows [\u@\h:\w] $ and changes the shell to sh no longer giving me history using the arrows on the keyboard. what file and where did you (void creators) hide it so I can modify it to get it to show a prompt I like more better then just # and why it is such a hard subject to find an answer to on the internet? ------=_Part_2315_451238495.1458063264522 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I get the # when ever I log into terminal as su
how do = I change it to show [root@domanName]currentDir# ?
I've added a /etc/= bashrc and this inside of it.

#if [[ $EUID =3D=3D 0 ]] ; then
if [[ id =3D=3D 0 ]] ; then

export PS1=3D"\[\e[41m\]\u\[\e[m\= ]@\[\e[41m\]\h\[\e[m\]\w# "

else
=C2=A0export PS1=3D"\u= @\h\w $"
fi

=C2=A0this only shows
[\u@\h:\w] $

an= d changes the shell to sh no longer giving me history using the arrows on t= he keyboard.

what file and where did you (void creators) hide it so= I can modify it to get it to show a prompt I like more better then just #<= br>
and why it is such a hard subject to find an answer to on the intern= et?


------=_Part_2315_451238495.1458063264522-- ------=_Part_2314_1658889389.1458063264522--