From 20c5e59c78ac1df940058e7025ce61f0485cba1e Mon Sep 17 00:00:00 2001 From: Joel Mathew Thomas <90510078+joelmathewthomas@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:52:32 +0530 Subject: [PATCH] dynamic setting of makeflags --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 1f557b7..d68a474 100644 --- a/.zshrc +++ b/.zshrc @@ -75,7 +75,7 @@ alias fast='wget -O /dev/null http://speedtest.tele2.net/10GB.zip' # Exports export PATH="/usr/lib/ccache/bin:/home/$(whoami)/.local/bin/:$PATH" -export MAKEFLAGS='-j3 -l2' +export MAKEFLAGS="-j$(( $(nproc) + 1 )) -l$(nproc)" # Shell integrations eval "$(fzf --zsh)"