summaryrefslogtreecommitdiff
path: root/lib/functions.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-01-16 18:59:24 +0100
committerMarc Cornellà <hello@mcornella.com>2021-01-16 18:59:24 +0100
commit8b37f817c29715873b91c8a8e7f883eccc240895 (patch)
treeca7e8049afd69eaf11e1e8a7cd29ddd91d7aeda5 /lib/functions.zsh
parent47c04d921ebb3fe4916eb131ae11557650aa1ae3 (diff)
downloadzsh-8b37f817c29715873b91c8a8e7f883eccc240895.tar.gz
zsh-8b37f817c29715873b91c8a8e7f883eccc240895.tar.bz2
zsh-8b37f817c29715873b91c8a8e7f883eccc240895.zip
fix(lib): use -N syntax in `head` and `tail` to support Solaris (#6391)
Closes #6391 Co-authored-by: Sergey Mashkov <cy6erGn0m@gmail.com>
Diffstat (limited to 'lib/functions.zsh')
-rw-r--r--lib/functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 7beb62ad9..c4340f16c 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -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 -n20 | column -c3 -s " " -t | nl
+ | grep -v "./" | sort -nr | head -20 | column -c3 -s " " -t | nl
}
function uninstall_oh_my_zsh() {