From 2aef21283d36a5be3194967b33c5b1f571121449 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 4 Feb 2025 06:38:47 +0000 Subject: [PATCH] Update nixos, push both nixos and emacs config when syncing --- system/home/scripts/shell/sync-git.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/home/scripts/shell/sync-git.sh b/system/home/scripts/shell/sync-git.sh index 97801d34..6ba76214 100644 --- a/system/home/scripts/shell/sync-git.sh +++ b/system/home/scripts/shell/sync-git.sh @@ -1,9 +1,14 @@ +# Update /etc/nixos/ +git -C /etc/nixos/ pull --ff --ff-only +git -C /etc/nixos/ push + # Clone ~/.config/emacs/ if it doesn't exist, pull otherwise EMACS_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/emacs" EMACS_URL="https://git.xenia.me.uk/pixelifytica/emacs.git" if [ -d "$EMACS_DIR" ]; then git -C "$EMACS_DIR" remote set-url origin "$EMACS_URL" git -C "$EMACS_DIR" pull --ff --ff-only + git -C "$EMACS_DIR" push else git clone "$EMACS_URL" "$EMACS_DIR" fi