chore: Move dotfiles part to different script

This commit is contained in:
Fabio Lenherr / DashieTM 2024-02-11 16:39:23 +01:00
parent 07f51dd3fb
commit 48d34ec7af
5 changed files with 386 additions and 50 deletions

View file

@ -6,7 +6,7 @@ carfile="$HOME/.config/scripts/carpkg.txt"
save() {
pacvar=$(pacman -Q)
flatvar=$(flatpak list | awk '{ print $2 }')
flatvar=$(flatpak list --columns=application | tail -n +2)
if [ "$pacfile" != ' ' ]; then
touch "$pacfile"
fi
@ -23,6 +23,9 @@ save() {
}
load() {
while read app; do
flatpak install "$app" -y
done <"$flatfile"
sudo paru -S - <"$pacfile"
}