dotfiles/zsh/exports.zsh

29 lines
477 B
Bash
Raw Normal View History

2016-08-22 11:04:24 +01:00
# My editor
2018-09-28 11:58:09 +01:00
command -v nvim > /dev/null 2>&1
if [ $? -eq 0 ]; then
export EDITOR="nvim"
else
export EDITOR="vim"
fi
2016-08-22 11:04:24 +01:00
2017-10-20 09:24:40 +01:00
# Parallel conpilation with make
2016-08-31 09:02:52 +01:00
export MAKEFLAGS="+j`nproc`"
2016-08-22 11:04:24 +01:00
2016-12-03 09:48:49 +00:00
# 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
2016-08-22 11:04:24 +01:00
export WINEDEBUG=-all
2016-12-03 10:43:49 +00:00
2017-06-08 13:14:05 +01:00
# for rust
export RUST_BACKTRACE=1
2016-12-03 10:43:49 +00:00