Help - Search - Members - Calendar
Full Version: configure shell
linux-noob.com/forums > Linux Noob > Tips and Tricks
wizzard
how can i change default colors of shell i mean i want that [root@wiz ~]# to apper with other colors (yellow or red)
znx
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 smile.gif

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

Also I have a short howto hidden here wink.gif
http://www.abdn.ac.uk/~fac075/?howto

Note that
\033 == ^[ .. i'll need to add that to my howto...
Navrax
QUOTE (znx @ Oct 29 2005, 06:57 AM) *
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 smile.gif

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

Also I have a short howto hidden here wink.gif
http://www.abdn.ac.uk/~fac075/?howto

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



So how do I make my text GREEN biggrin.gif!!
znx
QUOTE (Navrax @ Mar 7 2006, 06:38 PM) *
So how do I make my text GREEN biggrin.gif!!


32m = green .. so

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


thats green and blue
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.