projects
/
zsh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ba351
)
use fc -l -1 for "more history in the stats"
author
Joerg Jaspert
<joerg@ganneff.de>
Thu, 4 Apr 2013 08:56:45 +0000
(10:56 +0200)
committer
Joerg Jaspert
<joerg@ganneff.de>
Thu, 4 Apr 2013 08:56:45 +0000
(10:56 +0200)
.zsh/functions/zsh_stats
patch
|
blob
|
history
diff --git
a/.zsh/functions/zsh_stats
b/.zsh/functions/zsh_stats
index
2378782
..
ca2218a
100644
(file)
--- a/
.zsh/functions/zsh_stats
+++ b/
.zsh/functions/zsh_stats
@@
-1,3
+1,3
@@
# -*- mode:sh -*-
-
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