colourshell.sh

colourshell.sh is a simple Bash shell script that colours your shell interaction, changing colour for each command. I find it most useful when scrolling back looking for the start of output from the current command, especially when compiling. Here's an example:

phil@foo $ ps
  PID TTY          TIME CMD
20273 pts/9    00:00:00 bash
21006 pts/9    00:00:00 ps
phil@foo:~$ who
phil     tty1         Jan  7 22:00
phil     :0           Dec 29 22:44
phil     pts/0        Dec 29 22:45 (:0.0)
phil     pts/1        Dec 29 22:46 (:0.0)
phil     pts/2        Dec 29 23:05 (:0.0)
phil     pts/3        Dec 29 23:47 (:0.0)
phil     pts/4        Dec 29 23:51 (:0.0)
phil     pts/5        Jan  7 12:28 (:0.0)
phil     pts/6        Dec 30 16:37 (:0.0)
phil     pts/7        Jan  7 16:30 (:0.0)
phil     pts/8        Dec 31 15:17 (:0.0)
phil     pts/9        Jan  7 22:21 (:0.0)
phil     pts/10       Jan  7 22:23 (:0.0)
phil@foo:~$ uptime
 22:32:59 up 75 days, 14:05, 13 users,  load average: 0.91, 1.14, 0.84
phil@foo:~$

See the script for details of how to use it, and how it can be customised. Basically you just need to source it into your interactive shell.

colourshell.sh is licensed under the terms of the GNU General Public License. You can download the code from http://svn.chezphil.org/colourshell/trunk/ either using a Subversion client or simply with your web browser.

colourshell.sh is written by Phil Endecott. I'm also responsible for Anyterm, a terminal emulator on a web page, and Decimail, an email database.

If you have any suggestions for improvements or other comments you are weclome to contact me; a feedback form and email link are here.