summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index e4c4d1f..884e72b 100644
--- a/bashrc
+++ b/bashrc
@@ -28,9 +28,12 @@ PS1="${BYellow}\
###############
export GPG_TTY=$(tty)
export EDITOR=/usr/bin/vim
+
if [ $(which clang 2>/dev/null) ]; then
export CC=clang
export CXX=clang
+elif [[ $(which tcc 2>/dev/null) && !$(which gcc 2>/dev/null) ]]; then
+ export CC=tcc
fi
alias sudo="sudo "