From fa1eb19c36f86d645ca604b9e22aa28e81f55c3a Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 30 Oct 2021 13:03:11 +0000 Subject: [PATCH] zshrc: Derive MAKEFLAGS if we have nproc --- zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zshrc b/zshrc index 15c1a7a..77b5270 100644 --- a/zshrc +++ b/zshrc @@ -220,6 +220,8 @@ done __has_command vim && alias vi=vim __has_command gpg2 && alias gpg=gpg2 +__has_command nproc && export MAKEFLAGS="-j$(($(nproc) * 2))" + make() { case "$PWD" in # pkgsrc needs bmake and does not like MAKEFLAGS including -j.