8 lines
411 B
Text
8 lines
411 B
Text
|
#!/bin/sh
|
||
|
notify-send "WARNING: CLEANING & BACKING UP PACMAN PACKAGES! NO NOT USE PACMAN RELATED COMMANDS UNTIL FINISH MESSAGE IS SENT!"
|
||
|
sudo pacman -Qtdq --noconfirm | sudo pacman -Rns --noconfirm -
|
||
|
pacman -Scc --noconfirm
|
||
|
pacman -Qq > $HOME/git/dotfiles/packages.txt
|
||
|
cd $HOME/git/dotfiles && git add . && git commit -m "[AUTOMATED PUSH] Backed up Pacman" && git push
|
||
|
notify-send "Finished backing up Pacman."
|