mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-03-29 11:06:47 +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
|
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||||
|
|
||||||
# make
|
# make
|
||||||
export NPROC=`nproc`
|
if [[ $UNAME != Darwin ]]; then
|
||||||
|
export NPROC=`nproc`
|
||||||
|
else
|
||||||
|
export NPROC=`sysctl -n hw.cpu`
|
||||||
|
fi
|
||||||
|
|
||||||
export MAKEFLAGS="-j$NPROC"
|
export MAKEFLAGS="-j$NPROC"
|
||||||
export MAKE="make $MAKEFLAGS"
|
export MAKE="make $MAKEFLAGS"
|
||||||
alias make="make $MAKEFLAGS"
|
alias make="make $MAKEFLAGS"
|
||||||
|
7
zshrc
7
zshrc
@ -202,7 +202,12 @@ export CLICOLOR=1
|
|||||||
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||||
|
|
||||||
# make
|
# make
|
||||||
export NPROC=`nproc`
|
if [[ $UNAME != Darwin ]]; then
|
||||||
|
export NPROC=`nproc`
|
||||||
|
else
|
||||||
|
export NPROC=`sysctl -n hw.cpu`
|
||||||
|
fi
|
||||||
|
|
||||||
export MAKEFLAGS="-j$NPROC"
|
export MAKEFLAGS="-j$NPROC"
|
||||||
export MAKE="make $MAKEFLAGS"
|
export MAKE="make $MAKEFLAGS"
|
||||||
alias make="make $MAKEFLAGS"
|
alias make="make $MAKEFLAGS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user