diff --git a/zshenv b/zshenv index ed0849b..7bc396b 100644 --- a/zshenv +++ b/zshenv @@ -20,6 +20,7 @@ PATH=$HOME/.local/bin:$PATH MANPATH=$HOME/.local/share/man:$MANPATH INFOPATH=$HOME/.local/share/info:$INFOPATH +# Add ccache to the PATH and use XDG base dir paths if [ `uname` = Darwin ]; then [ -f /usr/local/bin/ccache ] && \ PATH=/usr/local/opt/ccache/libexec:$PATH @@ -30,6 +31,8 @@ elif [ -f /usr/bin/ccache ]; then PATH=/usr/lib/ccache:$PATH fi fi +export CCACHE_CONFIGPATH=$HOME/.config/ccache +export CCACHE_DIR=$HOME/.cache/ccache # Remove duplicates from environment variables typeset -U fpath