Browse code

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

Robby Russell authored on 31/08/2009 at 22:00:15
Showing 1 changed files
... ...
@@ -22,4 +22,8 @@ function preexec {
22 22
 
23 23
 function remote_console() {
24 24
   /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
25
+}
26
+
27
+function zsh_stats() {
28
+  history | awk '{print $2}' | sort | uniq -c | sort -rn | head
25 29
 }
26 30
\ No newline at end of file