X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/10cf60790cf2430aba9f7e7120ccd414959e4f81..b55d69396b587288c7e654035190d9e62fa70b71:/zsh/functions/zsh_stats diff --git a/zsh/functions/zsh_stats b/zsh/functions/zsh_stats new file mode 100644 index 0000000..9b5284f --- /dev/null +++ b/zsh/functions/zsh_stats @@ -0,0 +1,3 @@ +function zsh_stats() { + 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 +}