LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 575 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration