Linux-Noob Forums
configure shell - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+--- Thread: configure shell (/thread-2363.html)



configure shell - wizzard - 2005-10-27

how can i change default colors of shell i mean i want that [root@wiz ~]# to apper with other colors (yellow or red)



configure shell - znx - 2005-10-29


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...




configure shell - Navrax - 2006-03-07


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 :)!!




configure shell - znx - 2006-03-07


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