mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
Adding zsh_stats function to show you which commands you run the most.
This commit is contained in:
parent
a26cb28de4
commit
6fd7da65a3
1 changed files with 4 additions and 0 deletions
|
@ -23,3 +23,7 @@ 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
|
||||||
|
}
|
Loading…
Reference in a new issue