# ccache.plugin.zsh # 2015-03-27, alex@barton.de if type ccache >/dev/null; then # Setup environment for ccache, if installed export CCACHE_DIR="$XDG_CACHE_HOME/ccache" # Search for directory with wrapper commands and prepend it to "PATH" for d in \ /usr/local/opt/ccache/libexec \ /usr/local/lib/ccache \ /opt/ccache/libexec \ /usr/libexec/ccache \ /usr/lib/ccache \ ; do if [ -d "$d" ]; then PATH="$d:$PATH" break fi done fi