Linux-Noob Forums

Full Version: configure shell
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how can i change default colors of shell i mean i want that [root@wiz ~]# to apper with other colors (yellow or red)

that particular bit of your shell is the PS1 enviromental variable... you can set it like this:

 



Code:
export PS1="\[\033[01;33m\]\u@\h\[\033[01;34m\] \w $\[\033[00m\] "




 

Thats yellow with blue :)

 

If you like it then add the entry to the bottom of your "~/.bashrc" file..

 

Also I have a short howto hidden here ;)

[/url][url=http://www.abdn.ac.uk/~fac075/?howto]http://www.abdn.ac.uk/~fac075/?howto

 

Note that

\033 == ^[ .. i'll need to add that to my howto...


Quote:that particular bit of your shell is the PS1 enviromental variable... you can set it like this: 



Code:
export PS1="\[\033[01;33m\]\u@\h\[\033[01;34m\] \w $\[\033[00m\] "

<div>


 

Thats yellow with blue :)

 

If you like it then add the entry to the bottom of your "~/.bashrc" file..

 

Also I have a short howto hidden here ;)

[/url][url=http://www.abdn.ac.uk/~fac075/?howto]http://www.abdn.ac.uk/~fac075/?howto

 

Note that

\033 == ^[ .. i'll need to add that to my howto...

</div>
 

 

So how do I make my text GREEN :)!!


Quote:So how do I make my text GREEN :)!!
 

32m = green .. so

 



Code:
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w $\[\033[00m\] "




 

thats green and blue