Add ccache and sccache support

This commit is contained in:
JeremyStar™ 2024-03-12 22:57:27 +01:00
parent afd0c0bb8a
commit 13894c034c
2 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@ case "$ID" in
else
export "PARU_FLAGS="
fi
paru --removemake --batchinstall --sudoloop --mflags "--ignorearch" -Syu --needed bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp-git tar zstd bzip zip unrar unzip 7-zip binutils ${PARU_FLAGS}
paru --removemake --batchinstall --sudoloop --mflags "--ignorearch" -Syu --needed bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp-git tar zstd bzip zip unrar unzip 7-zip ccache sccache binutils ${PARU_FLAGS}
rustup default nightly
rustup update
cargo install eza
@ -35,7 +35,7 @@ case "$ID" in
*)
echo ":: No supported distribution found."
echo " Install these packages manually:"
echo " bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp tar zstd gzip bzip zip unrar unzip 7z ['ar' or 'binutils']"
echo " bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp tar zstd gzip bzip zip unrar unzip 7z ccache sccache ['ar' or 'binutils']"
echo " Then do this:"
echo " 1. Install the nightly rust toolchain and execute \"cargo install eza\""
echo " 2. Install sdkman by executing \"curl -s 'https://get.sdkman.io|bash'\""

View file

@ -6,6 +6,9 @@ source "/usr/share/icons-in-terminal/icons_bash.sh"
source "${HOME}/.jstmbash/init.source"
eval "$(starship init bash)"
alias "fireplace=$(which fireplace) -f 60 -t 13"
export "RUSTC_WRAPPER=sccache"
export "RUSTFLAGS=\"-Z threads=$(nproc)\""
export "CCACHE_DIR=/tmp/ccache"
function cleanhome() {
echo ":: Cleaning ~"
rm -rf "${HOME}/.cache" "${HOME}/.dotnet" "${HOME}/.fltk" "${HOME}/.gradle" "${HOME}/.hyprland" "${HOME}/.java" "${HOME}/.npm" "${HOME}/.nuget" "${HOME}/.nvm" "${HOME}/.openjfx" "${HOME}/.pki" "${HOME}/.vnc" "${HOME}/.yarn" "${HOME}/go" "${HOME}/Android" "${HOME}/.android" "${HOME}/.lesshst" "${HOME}/.wget-hsts" "${HOME}/.yarnrc" "${HOME}/package-lock.json" "${HOME}/package.json" "${HOME}/node_modules" "${HOME}/.npmrc" "${HOME}/.gtkrc-2.0"