diff options
author | Huang, Tao <tech@huangtao.me> | 2014-02-06 17:29:33 +0800 |
---|---|---|
committer | Huang, Tao <tech@huangtao.me> | 2014-02-06 17:29:33 +0800 |
commit | 217d8f0540a41b2927caf986561e45634fa1952a (patch) | |
tree | 32a5e5d7378fc4d8d35dfee90d33e7068c07c6b1 /lib/functions.zsh | |
parent | ec37c05cb350149ec77209bc7901c6aaa73f5567 (diff) | |
download | zsh-217d8f0540a41b2927caf986561e45634fa1952a.tar.gz zsh-217d8f0540a41b2927caf986561e45634fa1952a.tar.bz2 zsh-217d8f0540a41b2927caf986561e45634fa1952a.zip |
`fc -l 1` instead of `history` in zsh_stats #2501
$HIST_STAMP breaks zsh_stats. see #2501
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 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() { |