Mercurial > repos > other > linux
changeset 151:d0aef31d4122
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
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 11 Jan 2022 20:47:06 +0000 |
parents | 39abe6b6233f |
children | 510c38f1cfc2 |
files | bashrc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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