]> git.rmz.io Git - dotfiles.git/blob - zsh/functions/zsh_stats
vim: import settings from Steve Losh
[dotfiles.git] / zsh / functions / zsh_stats
1 function zsh_stats() {
2 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
3 }