mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 07:56:05 +02:00
Adding zsh_stats function to show you which commands you run the most.
This commit is contained in:
1 parent
a26cb28de4
commit
6fd7da65a3
1 file changed
+4
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user