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