#!/bin/sh echo "STORING ALL INSTALLED PACKES" pkg_count=$(wc -l < $XDG_DATA_HOME/pkglist) pacman -Qqe > $XDG_DATA_HOME/pkglist new_count=$(wc -l < $XDG_DATA_HOME/pkglist) count=$((new_count-pkg_count)) echo $count "added to pkglist" echo -e "\n\nUPDATING NVIM REPO" cd ~/.config/nvim git add . git commit -m "updates" git push echo -e "\n\nUPDATING DOTS REPO" cd $HOME yadm add -u yadm commit -m "updates" yadm push echo -e "\n\nPREVIOUS COMMIT LOGS" yadm log -1 --stat