1 2 3 4 5 6 7 8 9 10
#!/bin/sh if command -v ccache >/dev/null 2>&1; then export CCACHE_DIR="${HOME}/.ccache" if [ -d "/usr/lib/ccache/bin" ]; then export CCACHE_PATH="/usr/lib/ccache/bin:${PATH}" else export CCACHE_PATH="${PATH}" fi fi
Consider giving Nix/NixOS a try! <3