dotfiles/bin/remove_orphans

2 lines
94 B
Bash
Executable file

#!/bin/bash
sudo pacman -Qtdq | sudo pacman -Rns - 2> /dev/null|| echo "No orphans to remove"