diff --git a/.scripts/create-pacman-pkglist.sh b/.scripts/create-pacman-pkglist.sh new file mode 100644 index 0000000..b2b18af --- /dev/null +++ b/.scripts/create-pacman-pkglist.sh @@ -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 +