Neat trick: colorize bash input

As a frequent technical communicator, I often want to cut-and-paste something from my Unix terminal sessions so that other people can see what I’m seeing.

Unfortunately, it can be confusing to read:

Hello World in the Unix shell, without color

Hello World in the Unix shell, without color

Instead I want it to look like this:

Hello World in the Unix shell, in color

Hello World in the Unix shell, in color

How did I make this happen? Well, it’s a bit hacky, and it only works with the bash shell. Read on for more details.
Continue reading

“Unix Beards” part of a distinguished tradition

The existence of Unix Beards is exceptionally well-documented, from Dilbert to Fortune, with a notable appearance in Neal Stephenson’s Cryptonomicon.

But even the author of In the Beginning was the Command Line doesn’t seem to note that the Unix beard is really an extension of the philosopher’s beard, and the academic’s beard. (Perhaps that oversight is only fair, as One Thousand Beards doesn’t even mention “hackers” or “Unix.”)

Personally, I think it’s nice that Unix hackers see themselves as scientists and philosophers, or at least their descendants.