From a794844678614d41eccfe31708d8e7d32eeee9b6 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Tue, 28 Feb 2023 20:24:44 -0800 Subject: [PATCH] updates --- .config/zsh/aliases/aliases | 1 - Scripts/dots | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 Scripts/dots 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