diff --git a/.config/zsh/aliases/aliases b/.config/zsh/aliases/aliases index 165ebf5..f7efec8 100644 --- a/.config/zsh/aliases/aliases +++ b/.config/zsh/aliases/aliases @@ -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' diff --git a/Scripts/dots b/Scripts/dots new file mode 100755 index 0000000..ea5f7b1 --- /dev/null +++ b/Scripts/dots @@ -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