Colorful shell prompt

Based on shell color tutorial, I've managed to create a library to make colorful shell easy to make. I also attach an example script which can be applied as PS1 variable.

Just download them and see the codes. You'll understand :D

To apply the script put both files into /opt directory and also put the following line into ~/.bashrc file.

. /opt/ps1

AttachmentSize
Color library747 bytes
PS1 format662 bytes

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <pre>
  • Lines and paragraphs break automatically.
  • Syntax highlight code surrounded by the {syntaxhighlighter OPTIONS}...{/syntaxhighlighter} tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.