From 4252d06e65b83b7e41f0d6b2344f5ba92c6a2aa9 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 1 Oct 2019 22:50:20 +0100 Subject: [PATCH] Fix ccache PATH on Manjaro --- zshenv | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zshenv b/zshenv index ca56668..db5dcb2 100644 --- a/zshenv +++ b/zshenv @@ -23,9 +23,12 @@ INFOPATH=$HOME/.local/share/info:$INFOPATH if [ `uname` = Darwin ]; then [ -f /usr/local/bin/ccache ] && \ PATH=/usr/local/opt/ccache/libexec:$PATH -else - [ -f /usr/bin/ccache ] && \ +elif [ -f /usr/bin/ccache ]; then + if [ -d /usr/lib/ccache/bin ]; then + PATH=/usr/lib/ccache/bin:$PATH + elif [ -d /usr/lib/ccache ]; then PATH=/usr/lib/ccache:$PATH + fi fi # Remove duplicates from environment variables