.bashrc: +CCACHE_PREFIX
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 24 Apr 2021 16:45:47 +0000 (18:45 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 24 Apr 2021 16:45:47 +0000 (18:45 +0200)
.bashrc

diff --git a/.bashrc b/.bashrc
index 57623c7..12918b8 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -224,6 +224,9 @@ if [ -n "$cpus" ];then
        MAKEFLAGS="$MAKEFLAGS -j$[$cpus*1]"
 fi
 unset cpus
+if (which icecc && pidof iceccd) &>/dev/null;then
+       export CCACHE_PREFIX=icecc
+fi
 # Do not: grep -w "$TERM" /etc/termcap >/dev/null || export TERM=vt220
 # as Sun workaround as Debian misses: /etc/termcap
 # expects: $uname_p