View previous topic :: View next topic |
Author |
Message |
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sun Jan 27, 2013 8:56 pm Post subject: lfs style ps1 4 gentoo =D |
|
|
gotta get my voodoo linux from scratch terminals back... =D
as any user i want altered run this in terminal
Code: |
cat >> $HOME/.bashrc << "EOF"
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
if [[ $EUID == 0 ]] ; then
PS1="$RED\u@\h [ $NORMAL\w$RED ]# $NORMAL"
else
PS1="$GREEN\u@\h [ $NORMAL\w$GREEN ]\$ $NORMAL"
fi
EOF
|
Last edited by 666threesixes666 on Sat Jul 13, 2013 12:18 am; edited 1 time in total |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Wed Jan 30, 2013 3:33 pm Post subject: |
|
|
sourcing /etc/profile for gcc 4.6.3 (or what ever) has deleted this so i looked further into the scripts.... instead of adding that to the end of .bashrc.....
make /etc/profile.d/lfs.sh
&& dump the code into that file...
then
Code: |
mkultra@mksrv ~ $ source /etc/profile
mkultra@mksrv [ ~ ]$
|
mkultra@mksrv [ ~ ]$ sudo su
root@mksrv [ /home/mkultra ]# exit
=D
im pretty sure this solution goes away upon restart or new terminal. |
|
Back to top |
|
|
|