diff options
author | Kevin Burke <kevin@burke.dev> | 2021-11-09 00:04:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 09:04:10 +0100 |
commit | e86c6f5e7fc9f024a427e2870ab70644b5454725 (patch) | |
tree | bde5878b37dc151ae8643ef0473ea90a0d89a830 /lib/diagnostics.zsh | |
parent | 55682e36920e2ab7633fc6eee11466d3faed0bf8 (diff) | |
download | zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.tar.gz zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.tar.bz2 zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.zip |
style: use `-n` flag in `head` and `tail` commands (#10391)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
Diffstat (limited to 'lib/diagnostics.zsh')
-rw-r--r-- | lib/diagnostics.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diagnostics.zsh b/lib/diagnostics.zsh index 650520797..eaeba7d23 100644 --- a/lib/diagnostics.zsh +++ b/lib/diagnostics.zsh @@ -335,7 +335,7 @@ function _omz_diag_dump_os_specific_version() { builtin echo "OS Version: $osname $osver build $(sw_vers -buildVersion)" ;; cygwin) - command systeminfo | command head -4 | command tail -2 + command systeminfo | command head -n 4 | command tail -n 2 ;; esac |