new alias to remove orphans

This commit is contained in:
Harri Lahtinen 2020-05-25 23:23:08 +03:00
parent a249189089
commit 729b8828f1
1 changed files with 6 additions and 0 deletions

View File

@ -102,3 +102,9 @@ extract () {
echo "\`$1' is not a valid file"
fi
}
pacclean () {
while ! [ "$(sudo pacman -Qdtq)" = "" ]; do
sudo pacman -Rn $(sudo pacman -Qdtq)
done
}