]> arthur.barton.de Git - OhMyZshExtensions.git/blobdiff - plugins/ccache/ccache.plugin.zsh
"ccache" plugin: Assume that ccache is installed when plugin is used
[OhMyZshExtensions.git] / plugins / ccache / ccache.plugin.zsh
index d4d58501da3e50730957783f6f486f1f529d07a9..a3e23fc627f9bf1a2900382be6b51a52ef9cf10f 100644 (file)
@@ -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