Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
configure shell
#1
how can i change default colors of shell i mean i want that [root@wiz ~]# to apper with other colors (yellow or red)
Reply
#2

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

Reply
#3

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

Reply
#4

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

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)