ANSI Color In Mac OS X 10.4

By default when connecting over ssh to my Mac OS X 10.4 box (using bash shell), there’s no ANSI color. Sometimes it’s pretty handy to have. I keep forgetting how to turn it on.

To add, put the following in the .profile file in your home directory:

TERM=xterm-color; export TERM

Now when I ssh in, I get ANSI color goodness.

Hopefully next time I’ll just look for this post.

Shell Stats

Since it seems like everyone else on Planet Mozilla is doing it… My twist: multiple systems. Actually I found it interesting too see the variation based on what I use them for.

Home

$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
114 ls
91 cd
63 sh
41 ssh
37 sudo
14 pico
13 exit
12 ping
10 ./gl_tail
8 top

Home Server

$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
68 ls
64 dig
55 cd
45 whois
27 ps
24 clear
23 sudo
14 pico
12 top
12 exit

Work

$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
67 top
65 ssh
31 ls
29 sudo
26 dig
23 cd
20 ps
19 svn
17 php
8 ping