summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/bashrc b/bashrc
index 6ccbe3a..61efd63 100644
--- a/bashrc
+++ b/bashrc
@@ -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