summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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