Advertisement
v1ral_ITS

see most popular used commands function .zsh

Oct 11th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. popular1 () {
  2.     fc -l 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn} -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement