20080414

That history meme

I've run that command line showing my most frequently used commands a few times. Maybe I've held off from posting because the results would be embarrassing. I also noticed that its results differ wildly, because only when you close a shell is its history saved.

One command remains constant, though:

mw@quill:~> history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' | sort -rn | head -n 1
297 ls


Update: Benjaman Weber reminds me that you can make your history be saved more often by setting
PROMPT_COMMAND='history -a'
.

No comments: