| View previous topic :: View next topic |
| Author |
Message |
666threesixes666 Apprentice


Joined: 31 May 2011 Posts: 270
|
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 added this to the bottom
| Code: |
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
|
of this file
$HOME/.bashrc |
|
| Back to top |
|
 |
666threesixes666 Apprentice


Joined: 31 May 2011 Posts: 270
|
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 |
|
| Back to top |
|
 |
|