X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fccache%2Fccache.plugin.zsh;fp=plugins%2Fccache%2Fccache.plugin.zsh;h=a3e23fc627f9bf1a2900382be6b51a52ef9cf10f;hb=a90f65090215fee43016b8bb9d42829d1b419717;hp=d4d58501da3e50730957783f6f486f1f529d07a9;hpb=d610e4703d330893ecc03ae30a8ca51755505aad;p=OhMyZshExtensions.git diff --git a/plugins/ccache/ccache.plugin.zsh b/plugins/ccache/ccache.plugin.zsh index d4d5850..a3e23fc 100644 --- a/plugins/ccache/ccache.plugin.zsh +++ b/plugins/ccache/ccache.plugin.zsh @@ -1,21 +1,19 @@ # 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" +# 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 +# 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