Create a package list update script

This commit is contained in:
foo-dogsquared 2019-08-25 00:25:43 +08:00
parent 0b0c8037c4
commit 3bf8c5b761

View File

@ -0,0 +1,15 @@
#!/bin/sh
# Simply creates a package list at $HOME as `pkglist.txt`
pkglist=$(pacman -Qqne)
pkglist_filepath="$HOME/pkglist.txt"
if [[ -f $pkglist_filepath ]]; then
rm "$pkglist_filepath"
fi
touch $pkglist_filepath
echo "$pkglist" >> $pkglist_filepath