1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-04-10 16:32:00 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
rdsq
4eb7f1e945 Merge 64a4642422 into 7c10d9839f 2026-04-08 18:50:07 +00:00
rdsq
64a4642422 feat(zsh_stats): allow custom number of results shown 2026-02-16 18:30:13 +02:00

View File

@@ -1,7 +1,7 @@
function zsh_stats() {
fc -l 1 \
| awk '{ CMD[$2]++; count++; } END { for (a in CMD) print CMD[a] " " CMD[a]*100/count "% " a }' \
| grep -v "./" | sort -nr | head -n 20 | column -c3 -s " " -t | nl
| grep -v "./" | sort -nr | head -n "${1:-20}" | column -c3 -s " " -t | nl
}
function uninstall_oh_my_zsh() {