Index: fish/config.fish ================================================================== --- fish/config.fish +++ fish/config.fish @@ -59,8 +59,10 @@ alias gsftp="SSH_AUTH_SOCKET=$sock sftp" end if test (uname -s) = Darwin set -x MAKEFLAGS -j(math (sysctl -n machdep.cpu.thread_count)'*2') +else if test (uname -s) = NetBSD + set -x MAKEFLAGS -j(math (sysctl -n hw.ncpu)'*2') else if type -q nproc set -x MAKEFLAGS -j(math (nproc)'*2') end Index: zshrc ================================================================== --- zshrc +++ zshrc @@ -221,10 +221,12 @@ __has_command vim && alias vi=vim __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))" elif __has_command nproc; then export MAKEFLAGS="-j$(($(nproc) * 2))" fi make() {