X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/423002e963e65f660e77e57fe8f75aa061010fab..c6a94b49c00ea320c67909cbe0d2df2f95d4fbb9:/zshenv diff --git a/zshenv b/zshenv index 26ef6e6..8066566 100644 --- a/zshenv +++ b/zshenv @@ -53,6 +53,12 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" # weechat export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" -export MAKEFLAGS="-j$(nproc --all --ignore=2)" +case "$OSTYPE" in + linux*) export MAKEFLAGS="-j$(nproc --all --ignore=2)" ;; + darwin*) export MAKEFLAGS="-j$(($(sysctl -n hw.ncpu) - 2))" ;; + *) echo "Unknown OSTYPE: '$OSTYPE'" +esac export CTEST_OUTPUT_ON_FAILURE=1 + +export WORKSPACE=~/src/fpp/