From 6827a9102b953b7ed4aaa9d286ac26f725e242e7 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Thu, 22 Dec 2022 02:25:03 +0000 Subject: [PATCH] zshrc: Don't assume sysctl is in PATH --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 56038c0..ed0c6e2 100644 --- a/zshrc +++ b/zshrc @@ -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