Bash alias: Build on all CPU cores

Linux: alias makej="make -j $(cat /proc/cpuinfo | grep processor | wc | sed -r 's/^ +([0-9])+.*//')" Mac: alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')"

September 5, 2013 · updated April 30, 2021 · 1 min