]> arthur.barton.de Git - OhMyZshExtensions.git/blob - plugins/ccache/ccache.plugin.zsh
a3e23fc627f9bf1a2900382be6b51a52ef9cf10f
[OhMyZshExtensions.git] / plugins / ccache / ccache.plugin.zsh
1 # ccache.plugin.zsh
2 # 2015-03-27, alex@barton.de
3
4 # Setup environment for ccache, if installed
5 export CCACHE_DIR="$XDG_CACHE_HOME/ccache"
6
7 # Search for directory with wrapper commands and prepend it to "PATH"
8 for d in \
9         /usr/local/opt/ccache/libexec \
10         /usr/local/lib/ccache \
11         /opt/ccache/libexec \
12         /usr/libexec/ccache \
13         /usr/lib/ccache \
14 ; do
15         if [ -d "$d" ]; then
16                 PATH="$d:$PATH"
17                 break
18         fi
19 done