diff options
author | Peter Tillemans <pti@snamellit.com> | 2013-01-02 09:42:14 +0100 |
---|---|---|
committer | Peter Tillemans <pti@snamellit.com> | 2013-01-02 09:42:14 +0100 |
commit | 587832f15579398e54690e62ea588178e951f8f8 (patch) | |
tree | 1e2149e743710e2c72a567a042606333bbad88da /lib/functions.zsh | |
parent | 55cc936d4e6d88f18518cedc9574b1df10702f8b (diff) | |
parent | 80a603259657acab97badbae20003b5a34c901f9 (diff) | |
download | zsh-587832f15579398e54690e62ea588178e951f8f8.tar.gz zsh-587832f15579398e54690e62ea588178e951f8f8.tar.bz2 zsh-587832f15579398e54690e62ea588178e951f8f8.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'lib/functions.zsh')
-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() { |