dotfiles/zsh/exports.zsh

30 lines
507 B
Bash

# My editor
command -v nvim > /dev/null 2>&1
if [ $? -eq 0 ]; then
export EDITOR="nvim"
else
export EDITOR="vim"
fi
# Parallel conpilation with make
export MAKEFLAGS="+j`nproc`"
# 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
# for rust
export RUST_BACKTRACE=full
export TERM=xterm-256color