LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > w322
User Name
Password

Notices

Rate this Entry

Color the shell prompt

Posted 02-23-2006 at 08:28 PM by w322

add to ~/.bashrc: export PS1="\e[32m\u@\H[\W]>\e[0m"
This example makes the prompt green (32).

Some other colors (this is not all of them):

31=red
34=blue
35=purple
30=black
Posted in Uncategorized
Views 372 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration