|
|
Modify your terminal shell prompt
Is there anything uglier and harder to read and more tedious to modify than ANSI color codes 5 minutes after you have written them? Is there anything more annoying than ANSI color code spewage in terminals that do not accept them? Below is what I have come to prefer over raw ANSI color codes. This code (below) has been scraped off the web here and there with miscellaneous changes made that I have long since forgotten. As you can see below the PS1 variable value now almost reads like an English sentence. I keep the code below near the top of my ~/.bashrc file START ~/.bashrc code:
END ~/.bashrc code. Things like, ${tBold}${tGreen} blah blah blah ${tReset}, work well in here-documents as well. Colors become much easier to use in your bash scripts too:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.20 seconds |
|