zshrc: Don't assume sysctl is in PATH
This commit is contained in:
parent
6484c0ed41
commit
6827a9102b
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
@ -224,7 +224,7 @@ __has_command gpg2 && alias gpg=gpg2
|
||||||
if [ "$(uname -s)" = "Darwin" ]; then
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
export MAKEFLAGS="-j$(($(sysctl -n machdep.cpu.thread_count) * 2))"
|
export MAKEFLAGS="-j$(($(sysctl -n machdep.cpu.thread_count) * 2))"
|
||||||
elif [ "$(uname -s)" = "NetBSD" ]; then
|
elif [ "$(uname -s)" = "NetBSD" ]; then
|
||||||
export MAKEFLAGS="-j$(($(sysctl -n hw.ncpu) * 2))"
|
export MAKEFLAGS="-j$(($(/sbin/sysctl -n hw.ncpu) * 2))"
|
||||||
elif __has_command nproc; then
|
elif __has_command nproc; then
|
||||||
export MAKEFLAGS="-j$(($(nproc) * 2))"
|
export MAKEFLAGS="-j$(($(nproc) * 2))"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue