laptop-dots/Scripts/dots

24 lines
474 B
Plaintext
Raw Permalink Normal View History

2023-03-01 04:24:44 +00:00
#!/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