diff --git a/zsh/path.zsh b/zsh/path.zsh index da52844..3590ccd 100644 --- a/zsh/path.zsh +++ b/zsh/path.zsh @@ -10,6 +10,12 @@ fi # Rust path if [ -d $HOME/.cargo ]; then export PATH=$HOME/.cargo/bin:$PATH + # Use sccache if available + command -v sccache > /dev/null 2>&1 + + if [ $? -eq 0 ]; then + export RUSTC_WRAPPER=sccache + fi fi # Node path