about summary refs log tree commit diff
path: root/profile/.profile.d/ccache.sh
blob: 895f9f088b844f38d98fa9190a5a886c612e1d7b (plain) (blame)
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