summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-09-02 20:18:14 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-09-02 20:18:14 +1200
commit88b048f0f76e553c8eccecf19e51f68fed3f1b4c (patch)
tree5e85b7f19bc0107395df75e8b709d8993e455f4b /bashrc
parent6f48647a1d380913559a5a3dcdaf0a3ffb74e9a3 (diff)
parent26f6f50589a86680ae73f2c6116f25b4fb7314f8 (diff)
downloaddotfiles-88b048f0f76e553c8eccecf19e51f68fed3f1b4c.tar.xz
Merge branch 'master' of hermes:/srv/git/david/dotfiles
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index e52a4a8..d66c5f9 100644
--- a/bashrc
+++ b/bashrc
@@ -31,9 +31,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 "