Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lfs style ps1 4 gentoo =D
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1225
Location: 42.68n 85.41w

PostPosted: Sun Jan 27, 2013 8:56 pm    Post subject: lfs style ps1 4 gentoo =D Reply with quote

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
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1225
Location: 42.68n 85.41w

PostPosted: Wed Jan 30, 2013 3:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum