mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 04:57:57 +00:00
16 lines
264 B
Bash
16 lines
264 B
Bash
#!/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
|
|
|