diff options
author | Robby Russell <robby@planetargon.com> | 2014-04-19 12:54:35 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-04-19 12:54:35 -0700 |
commit | 01dcf51fdfb61e2c97f183b648692a2822f0d470 (patch) | |
tree | ecd25a64afb558ed5b54e0fc853b4ab8fa96be2e | |
parent | 5eb5f7138a0a70cf34285b25d1cc205c93f2c56d (diff) | |
parent | 217d8f0540a41b2927caf986561e45634fa1952a (diff) | |
download | zsh-01dcf51fdfb61e2c97f183b648692a2822f0d470.tar.gz zsh-01dcf51fdfb61e2c97f183b648692a2822f0d470.tar.bz2 zsh-01dcf51fdfb61e2c97f183b648692a2822f0d470.zip |
Merge pull request #2502 from UniIsland/patch-1
`fc -l 1` instead of `history` in zsh_stats, fixes #2501
-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 aaf8a03e3..fda84a953 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -1,5 +1,5 @@ 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 + fc -l 1 | 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() { |