loading...

re: What are your top ten command lines? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I'm using zsh and this command didn't work well. I found this post which includes something nice! Here's mine: ~% history 1 | cat | awk '{CMD[$2...
 

If you use zsh you can use the command zsh_stats.

 

Nice! I didn't know about zsh_stats. It would have saved me some time tinkering with cut and uniq :P

$ zsh_stats                                                                      
     1  828  7.84165%     git
     2  691  6.54418%     gst
     3  533  5.04783%     gco
     4  469  4.44171%     cd
     5  439  4.15759%     ggpush
     6  367  3.47571%     gca
     7  363  3.43783%     grunt
     8  357  3.381%       ls
     9  299  2.83171%     npm
    10  291  2.75594%     make
    11  288  2.72753%     code
    12  248  2.34871%     open
    13  188  1.78047%     node
    14  188  1.78047%     hexo
    15  171  1.61947%     z
    16  156  1.47741%     brew
    17  145  1.37324%     ggpull
    18  141  1.33535%     ..
    19  138  1.30694%     cat
    20  136  1.288%       eos
Code of Conduct Report abuse