zshrc: Derive MAKEFLAGS if we have nproc
This commit is contained in:
parent
1e0bf8641a
commit
fa1eb19c36
1 changed files with 2 additions and 0 deletions
2
zshrc
2
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue