mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-03 16:52:37 +01:00
bashrc & zshrc: fix #20 I hope.
Same output which nproc gives can be got with "sysctl -n hw.ncpu".
This commit is contained in:
parent
b4ece3743b
commit
8638a420bc
7
bashrc
7
bashrc
@ -264,7 +264,12 @@ export CLICOLOR=1
|
||||
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||
|
||||
# make
|
||||
export NPROC=`nproc`
|
||||
if [[ $UNAME != Darwin ]]; then
|
||||
export NPROC=`nproc`
|
||||
else
|
||||
export NPROC=`sysctl -n hw.cpu`
|
||||
fi
|
||||
|
||||
export MAKEFLAGS="-j$NPROC"
|
||||
export MAKE="make $MAKEFLAGS"
|
||||
alias make="make $MAKEFLAGS"
|
||||
|
7
zshrc
7
zshrc
@ -202,7 +202,12 @@ export CLICOLOR=1
|
||||
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||
|
||||
# make
|
||||
export NPROC=`nproc`
|
||||
if [[ $UNAME != Darwin ]]; then
|
||||
export NPROC=`nproc`
|
||||
else
|
||||
export NPROC=`sysctl -n hw.cpu`
|
||||
fi
|
||||
|
||||
export MAKEFLAGS="-j$NPROC"
|
||||
export MAKE="make $MAKEFLAGS"
|
||||
alias make="make $MAKEFLAGS"
|
||||
|
Loading…
Reference in New Issue
Block a user