diff --git a/zsh/exports.zsh b/zsh/exports.zsh index f7876f4..93cdea2 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -21,7 +21,16 @@ export CLASSPATH="$CLASSPATH:$HOME/.java/packages/*:$HOME/.java/packages/lib/*:/ export MATLABPATH=$HOME/.matlab2 export GOPATH="$HOME/.config/go" -# I want clang as default compiler -export CC="clang" -export CXX="clang++" +# I want clang as default compiler if it exists +command -v clang > /dev/null 2>&1 +if [ $? -eq 0 ]; then + export CC="clang" +fi + +command -v clang++ > /dev/null 2>&1 +if [ $? -eq 0 ]; then + export CXX="clang++" +fi + +# Wine Debug export WINEDEBUG=-all