This commit is contained in:
abs3nt 2023-02-28 20:24:44 -08:00
parent 81d82efab7
commit a794844678
2 changed files with 23 additions and 1 deletions

View File

@ -7,7 +7,6 @@ alias ovpn3_disconnect='openvpn3 session-manage --disconnect --config ~/GFX/clie
alias unplex='ssh UnPlex' alias unplex='ssh UnPlex'
alias stern='stern --container-state running,waiting,terminated' alias stern='stern --container-state running,waiting,terminated'
alias colo='sudo openfortivpn -c ~/.config/openfortivpn/vpn.conf' alias colo='sudo openfortivpn -c ~/.config/openfortivpn/vpn.conf'
alias dots='pacman -Qqe > ~/.local/share/pkglist.txt && yadm add -u && yadm commit -m "updates" && yadm push && yadm log -1 --stat'
alias jq='gojq' alias jq='gojq'

23
Scripts/dots Executable file
View File

@ -0,0 +1,23 @@
#!/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