Bash rainbow

Tweet about this on TwitterShare on Google+Share on RedditShare on LinkedInShare on FacebookBuffer this page

I recently found a need to implement text colours (warnings, attention) in a large pre-Vagrant host installer bash script. I couldn't remember which codes were which and static lists are passé, so I made this:

Which outputs colours like this:

Bash rainbow output
Bash rainbow output
  • andrew

    Hi, Michael.

    I am trying to reach you regarding your xhprof PHP extension bug fix. I am compiling a different PHP extension but getting the same error you had in xhprof. My hope is your fix will be my fix. So far I am failing to reach the authors of the other extension