Adding zsh_stats function to show you which commands you run the most.

This commit is contained in:
Robby Russell 2009-08-31 15:00:15 -07:00
parent a26cb28de4
commit 6fd7da65a3

View File

@ -23,3 +23,7 @@ function preexec {
function remote_console() {
/usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
}
function zsh_stats() {
history | awk '{print $2}' | sort | uniq -c | sort -rn | head
}