summaryrefslogtreecommitdiff
path: root/bash_profile
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2016-06-07 20:30:54 +1200
committerDavid <dbphillipsnz@gmail.com>2016-06-07 20:30:54 +1200
commit9588833f11d075f060b778a5e629d7210e51a59b (patch)
tree4438c6e4c198b1972130502b838d8ec8b55ae637 /bash_profile
parent1c8e2228e6c47f171333fbe6aed6106d2e94cfe3 (diff)
downloaddotfiles-9588833f11d075f060b778a5e629d7210e51a59b.tar.xz
Add check for clang in path before setting CXX and CC
Diffstat (limited to 'bash_profile')
-rw-r--r--bash_profile6
1 files changed, 4 insertions, 2 deletions
diff --git a/bash_profile b/bash_profile
index 6ccbe3a..61efd63 100644
--- a/bash_profile
+++ b/bash_profile
@@ -28,8 +28,10 @@ PS1="${BYellow}\
export GPG_TTY=$(tty)
export EDITOR=/usr/bin/vim
-export CC=clang
-export CXX=clang
+if [ $(which clang 2>/dev/null) ]; then
+ export CC=clang
+ export CXX=clang
+fi
alias sudo="sudo "
alias monut=mount