diff options
author | Robby Russell <robby@planetargon.com> | 2012-11-25 11:37:43 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-11-25 11:37:43 -0800 |
commit | 802c2df7ba56e08b1befff65b31a0e2545f948d6 (patch) | |
tree | 5b8faf8f7a64dcdfc03da50db8177c76246f1a9e /lib | |
parent | a5bc97f76b1c88096d56ad8a937af373bfb54458 (diff) | |
parent | 5b2ca3875a15bbae4f064cb98935461df2e93e15 (diff) | |
download | zsh-802c2df7ba56e08b1befff65b31a0e2545f948d6.tar.gz zsh-802c2df7ba56e08b1befff65b31a0e2545f948d6.tar.bz2 zsh-802c2df7ba56e08b1befff65b31a0e2545f948d6.zip |
Merge pull request #1406 from chinghanho/master
Improved statistics functions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh index d2dcadd0c..63ab755cf 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -1,5 +1,5 @@ function zsh_stats() { - history | awk '{print $2}' | sort | uniq -c | sort -rn | head + history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20 } function uninstall_oh_my_zsh() { |