dotfiles/bin/remove_orphans

3 lines
94 B
Bash
Executable File

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