From d9076095082ebaef4dc9aeba2b70c29a8bb2a099 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 11 May 2024 17:36:01 +0100 Subject: [PATCH] Update git-sync-all script to include home-manager config --- scripts/git-sync-all.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/git-sync-all.sh b/scripts/git-sync-all.sh index 73af165..ef170ac 100755 --- a/scripts/git-sync-all.sh +++ b/scripts/git-sync-all.sh @@ -26,13 +26,15 @@ for i in "${!SYNC_DIRS[@]}"; do ) done -# Pull NixOS and Emacs config if simple fast-forward +# Pull NixOS, home-manager and Emacs configs if simple fast-forward PULL_DIRS=( "/etc/nixos" + "${XDG_CONFIG_HOME:-$HOME/.config}/home-manager" "${XDG_CONFIG_HOME:-$HOME/.config}/emacs" ) PULL_URLS=( "https://git.xenia.me.uk/pixelifytica/nixos.git" + "https://git.xenia.me.uk/pixelifytica/home-manager.git" "https://git.xenia.me.uk/pixelifytica/emacs.git" ) for i in "${!PULL_DIRS[@]}"; do @@ -51,5 +53,6 @@ for i in "${!PULL_DIRS[@]}"; do else echo "Not syncing repo $DIRECTORY on branch $(git branch --show-current)" fi + git status --porcelain ) done