commit e9bfdb1e00e5c2b5d1ca0bdf04134b7b4bc73eec
parent 07fc8dfdc351cd7e64f3332ec69e87446e1eee79
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Tue, 3 Nov 2020 14:55:03 -0800
Run make(1) in parallel
Add ncpu alias to get the number of cpu cores/threads and add make(1)
alias to use the -j flag with ncpu.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/aliases/.config/aliases/main b/aliases/.config/aliases/main
@@ -28,6 +28,8 @@ alias get="curl -sSLO"
alias g="git"
alias gcc="git rev-list HEAD --count"
alias t=tmux
+alias ncpu="sysctl -n hw.ncpufound"
+alias make="make -j`ncpu`"
# edit executable file in PATH
fp() {