add scripts
This commit is contained in:
parent
8e5898aa57
commit
428458e50a
36 changed files with 934 additions and 0 deletions
19
.bin/sh/orphans.sh
Executable file
19
.bin/sh/orphans.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check for orphans then asks for removal
|
||||
|
||||
{
|
||||
while [[ $(pacman -Qtdq) ]];
|
||||
do
|
||||
pacman -Qtdq;
|
||||
read -p "Remove orphaned packages? [y/n]:" -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
sudo pacman -R $(pacman -Qtdq)
|
||||
elif [[ -n $(pacman -Qtdq) ]];
|
||||
then
|
||||
exit
|
||||
fi
|
||||
done
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue