mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-03-28 10:30:53 +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
5
bashrc
5
bashrc
@ -264,7 +264,12 @@ export CLICOLOR=1
|
|||||||
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||||
|
|
||||||
# make
|
# make
|
||||||
|
if [[ $UNAME != Darwin ]]; then
|
||||||
export NPROC=`nproc`
|
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"
|
||||||
|
5
zshrc
5
zshrc
@ -202,7 +202,12 @@ export CLICOLOR=1
|
|||||||
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||||
|
|
||||||
# make
|
# make
|
||||||
|
if [[ $UNAME != Darwin ]]; then
|
||||||
export NPROC=`nproc`
|
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