Posts Tagged ‘shell’

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:

Bash [Show Styled Code]:

TERM=xterm-color; export TERM

Bash [...]

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 [...]