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.