Articles tagged alias

  1. Bash alias: Build on all CPU cores

    Linux:

    1
    
    alias makej="make -j $(cat /proc/cpuinfo | grep processor | wc | sed -r 's/^ +([0-9])+.*//')"
    

    Mac:

    1
    
    alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')"
    
    Read more