#!/usr/bin/env bash # # SCRIPT NAME: # clean # # AUTHOR: # Severin Kaderli # # DESCRIPTION: # This script cleans the system. # # USAGE: # ./clean . utils print_section "Remove unneeded dependencies" mapfile -t UNNEEDED_DEPENDENCIES < <(yay -Qdtq) yay -R "${UNNEEDED_DEPENDENCIES[@]}" print_section "Clean yay cache" yay -Sc print_section "Clean docker" docker system prune