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