devconf/.zcustom/env.zsh

17 lines
305 B
Bash
Raw Normal View History

2021-09-07 11:17:16 +00:00
export EDITOR="vim"
2021-10-06 22:16:38 +00:00
export MAKEOPTS="-j$(cat /proc/cpuinfo | awk -F: '$1 ~ /cpu cores/ { print $2 }' | head -n 1 | tr -d ' ')"
if [ -n "$(command -v clang)" ]; then
export CC=clang
else
export CC=gcc
fi
if [ -n "$(command -v clang++)" ]; then
export CXX=clang++
else
export CXX=g++
fi