diff --git a/system/.local/bin/clean b/system/.local/bin/clean index 2fe34b4..8250be6 100755 --- a/system/.local/bin/clean +++ b/system/.local/bin/clean @@ -17,12 +17,11 @@ print_section "Remove unneeded dependencies" mapfile -t UNNEEDED_DEPENDENCIES < <(yay -Qdtq) yay -Rsnu "${UNNEEDED_DEPENDENCIES[@]}" -print_section "Clear makepkg files" -print_log "Deleting files in ${YELLOW}${XDG_DATA_HOME}/src/${RESET}" -rm -rf "${XDG_DATA_HOME}/src/"* +print_section "Cleaning files in ${YELLOW}/var/cache/pacman/pkg/${RESET}" +paccache -rk 1 -c "/var/cache/pacman/pkg/" -print_section "Clean yay cache" -yay -Sc +print_section "Cleaning files in ${YELLOW}${XDG_DATA_HOME}/pkg/${RESET}" +paccache -rk 1 -c "${XDG_DATA_HOME}/pkg" print_section "Clean composer cache" composer clearcache