Add clean script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
54cb7afbe8
commit
1c6c467659
1 changed files with 23 additions and 0 deletions
23
system/.local/bin/clean
Executable file
23
system/.local/bin/clean
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# SCRIPT NAME:
|
||||||
|
# clean
|
||||||
|
#
|
||||||
|
# AUTHOR:
|
||||||
|
# Severin Kaderli <severin@kaderli.dev>
|
||||||
|
#
|
||||||
|
# DESCRIPTION:
|
||||||
|
# This script cleans the system.
|
||||||
|
#
|
||||||
|
# USAGE:
|
||||||
|
# ./clean
|
||||||
|
. utils
|
||||||
|
|
||||||
|
print_section "Remove unneeded dependencies"
|
||||||
|
yay -R $(yay -Qdtq)
|
||||||
|
|
||||||
|
print_section "Clean yay cache"
|
||||||
|
yay -Sc
|
||||||
|
|
||||||
|
print_section "Clean docker"
|
||||||
|
docker system prune
|
Loading…
Add table
Add a link
Reference in a new issue