Commit 6fd7da65 authored by Robby Russell's avatar Robby Russell
Browse files

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

parent a26cb28d
...@@ -22,4 +22,8 @@ function preexec { ...@@ -22,4 +22,8 @@ function preexec {
function remote_console() { function remote_console() {
/usr/bin/env ssh $1 "( cd $2 && ruby script/console production )" /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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment