X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/423002e963e65f660e77e57fe8f75aa061010fab..0716bcc1f67f9f8caebc6788454cd4171a08414b:/zshenv diff --git a/zshenv b/zshenv index 26ef6e6..09f86c5 100644 --- a/zshenv +++ b/zshenv @@ -53,6 +53,16 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" # weechat export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" -export MAKEFLAGS="-j$(nproc --all --ignore=2)" +export XIDLEHOOK_SOCKET=$XDG_RUNTIME_DIR/xidlehook.socket +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 + +# cmake +export CMAKE_EXPORT_COMPILE_COMMANDS=1 export CTEST_OUTPUT_ON_FAILURE=1 + +export WORKSPACE=~/src/fpp/