summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-03 17:08:04 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-03 17:08:04 +0200
commitae158eba7115e878cc05c817efce603748360d43 (patch)
tree0ba5e3f50aa4305f0a3242f33010a790e00fc776 /etc
parentc6433e37c8a638b5cf7f3e57260faf40c46ef3e6 (diff)
.zshrc: Use clang as default cc (if available)
Diffstat (limited to 'etc')
-rw-r--r--etc/.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/.zshrc b/etc/.zshrc
index 50d3de8..de4434d 100644
--- a/etc/.zshrc
+++ b/etc/.zshrc
@@ -76,6 +76,10 @@ if (( EUID != 0)) {
export MAKEFLAGS=j$(grep -c '^processor' /proc/cpuinfo)
+if [[ -n ${commands[clang]} ]] {
+ export CC=clang
+}
+
typeset -U path
path=(~/bin ${path})