laptop-dots/Scripts/dots
2023-02-28 20:24:44 -08:00

24 lines
474 B
Bash
Executable File

#!/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