dotfiles/bin/create-pacman-pkglist.sh

16 lines
264 B
Bash
Raw Normal View History

2019-08-24 16:25:43 +00:00
#!/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