1
1
Fork 0

zshrc: Don't assume sysctl is in PATH

This commit is contained in:
Jonathan Schleifer 2022-12-22 02:25:03 +00:00
parent 6484c0ed41
commit 6827a9102b

2
zshrc
View file

@ -224,7 +224,7 @@ __has_command gpg2 && alias gpg=gpg2
if [ "$(uname -s)" = "Darwin" ]; then
export MAKEFLAGS="-j$(($(sysctl -n machdep.cpu.thread_count) * 2))"
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
export MAKEFLAGS="-j$(($(nproc) * 2))"
fi