summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2009-08-31 15:00:15 -0700
committerRobby Russell <robby@planetargon.com>2009-08-31 15:00:15 -0700
commit6fd7da65a34e9a2e10ccef7e83d974bab63cb99e (patch)
treeb62b5a25b499869f760567a9dd97bf0774f25150
parenta26cb28de4d095d547d774a3b3258a76f17507c3 (diff)
downloadzsh-6fd7da65a34e9a2e10ccef7e83d974bab63cb99e.tar.gz
zsh-6fd7da65a34e9a2e10ccef7e83d974bab63cb99e.tar.bz2
zsh-6fd7da65a34e9a2e10ccef7e83d974bab63cb99e.zip
Adding zsh_stats function to show you which commands you run the most.
-rw-r--r--functions.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.zsh b/functions.zsh
index dcabed957..1f2a2023c 100644
--- a/functions.zsh
+++ b/functions.zsh
@@ -22,4 +22,8 @@ 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
} \ No newline at end of file