# HG changeset patch # User IBBoard # Date 1641934026 0 # Node ID d0aef31d4122528a369f1b67777e944ed04afd0a # Parent 39abe6b6233feeed5b02866a60403e0ea4b5c5da Speed up compilation but stop Python making bytecode! * Set compilation flags for parallel compilation * Set a Python variable so that hg-prompt doesn't keep writing `~/__pycache__/` files diff -r 39abe6b6233f -r d0aef31d4122 bashrc --- a/bashrc Tue Jan 11 20:44:50 2022 +0000 +++ b/bashrc Tue Jan 11 20:47:06 2022 +0000 @@ -39,6 +39,11 @@ export GTK_IM_MODULE=ibus export LS_OPTIONS="$LS_OPTIONS -p" +# Speed up compilation and take all the cores! (probably) +export MAKEFLAGS=-j$(lscpu|grep "^CPU(s):"|head -n1|awk '{print $2}') + +export PYTHONDONTWRITEBYTECODE=true + function vcs_status { GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWUPSTREAM=verbose