updates
This commit is contained in:
parent
81d82efab7
commit
a794844678
@ -7,7 +7,6 @@ alias ovpn3_disconnect='openvpn3 session-manage --disconnect --config ~/GFX/clie
|
||||
alias unplex='ssh UnPlex'
|
||||
alias stern='stern --container-state running,waiting,terminated'
|
||||
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'
|
||||
|
||||
|
23
Scripts/dots
Executable file
23
Scripts/dots
Executable 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
|
Loading…
Reference in New Issue
Block a user