make top colorful

top has a few different color modes you can setup. while top is running, type

z

to toggle color, and to sort by res memory,

shift-m

The cool thing is you can save these choices to a pref file by just hitting

shift-w

after doing the above. Then your top will always open sorted correctly and colorised!

Alternatively you could just put this in .toprc in ~/

RCfile for "top with windows"		# shameless braggin'
Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0
Def	fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX
	winflags=64825, sortindx=13, maxtasks=0
	summclr=1, msgsclr=1, headclr=3, taskclr=1
Job	fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
	winflags=62777, sortindx=0, maxtasks=0
	summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem	fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
	winflags=62777, sortindx=13, maxtasks=0
	summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr	fieldscur=ABDECGfhijlopqrstuvyzMKNWX
	winflags=62777, sortindx=4, maxtasks=0
	summclr=3, msgsclr=3, headclr=2, taskclr=3

But the keystrokes above are a faster way to get it the way you like.

Key reference for setting top up the way YOU like it:

z   color mode toggle
x   column highlight toggle
f   interactively toggle columns shown
<   move sort field left
>   move sort field right
H   threads shown toggle
u   show specific user only
M   sort by res memory
W   write current settings to default profile (.toprc)
Z   interactively setup colors

Accent theme by Handsome Code

geeky tips, applescripts, and howtos to make your OSX life easier.

view archive