When programming, it is common to spend a lot of time using a command-line shell. On the Mac, the program used is Terminal.
Recently I discovered that it is possible to spruce up the mundane appearance of Terminal by adding color. There are two techniques that I will show to add color, one to colorize the output from the 'ls' command, and another that colorizes the two simple text editors, nano and pico.
First, let us begin with colorizing the 'ls' command, which is helpful for file system navigation. With this setting, directories are displayed as one color, regular files another, executables yet another, and so on. To make this happen, add the following two lines to either ~/.bash_profile to apply for just the single user, or to /etc/bashrc for all users.