diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-09 14:26:38 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-09 14:26:38 +0300 |
commit | a3c1b7164be115f097682088c6feac283c40a1f2 (patch) | |
tree | 1de92dcb7058bb1864d82f4916e9011ce4db3c34 /gitstatus.plugin.zsh | |
parent | b93f9663c5e4e9d914c4389fc405bc7ec7382b57 (diff) |
Squashed 'gitstatus/' changes from 830aaa999..3050dfca8
3050dfca8 add `command` in front of commands
git-subtree-dir: gitstatus
git-subtree-split: 3050dfca875a8070aaa0dc890afcc756574078c6
Diffstat (limited to 'gitstatus.plugin.zsh')
-rw-r--r-- | gitstatus.plugin.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gitstatus.plugin.zsh b/gitstatus.plugin.zsh index 66d128c2..a19f93f2 100644 --- a/gitstatus.plugin.zsh +++ b/gitstatus.plugin.zsh @@ -365,7 +365,7 @@ function _gitstatus_daemon"${1:-}"() { trap '' PIPE local uname_sm - uname_sm="${(L)$(uname -sm)}" || return + uname_sm="${(L)$(command uname -sm)}" || return [[ $uname_sm == [^' ']##' '[^' ']## ]] || return local uname_s=${uname_sm% *} local uname_m=${uname_sm#* } @@ -375,15 +375,15 @@ function _gitstatus_daemon"${1:-}"() { else local cpus if (( ! $+commands[sysctl] )) || [[ $uname_s == linux ]] || - ! cpus="$(sysctl -n hw.ncpu)"; then - if (( ! $+commands[getconf] )) || ! cpus="$(getconf _NPROCESSORS_ONLN)"; then + ! cpus="$(command sysctl -n hw.ncpu)"; then + if (( ! $+commands[getconf] )) || ! cpus="$(command getconf _NPROCESSORS_ONLN)"; then cpus=8 fi fi args+=(-t $((cpus > 16 ? 32 : cpus > 0 ? 2 * cpus : 16))) fi - mkfifo -- $file_prefix.fifo || return + command mkfifo -- $file_prefix.fifo || return print -rnu $pipe_fd -- ${(l:20:)pgid} || return exec <$file_prefix.fifo || return zf_rm -- $file_prefix.fifo || return @@ -752,7 +752,7 @@ function gitstatus_start"${1:-}"() { print -ru2 -- ' System information:' print -Pru2 -- '%F{yellow}' print -ru2 -- " zsh: $ZSH_VERSION" - print -ru2 -- " uname -a: $(uname -a)" + print -ru2 -- " uname -a: $(command uname -a)" print -Pru2 -- '%f' print -ru2 -- ' If you need help, open an issue and attach this whole error message to it:' print -ru2 -- '' |