Update git-sync-all script to include home-manager config
This commit is contained in:
parent
44f1412ace
commit
d907609508
|
@ -26,13 +26,15 @@ for i in "${!SYNC_DIRS[@]}"; do
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|
||||||
# Pull NixOS and Emacs config if simple fast-forward
|
# Pull NixOS, home-manager and Emacs configs if simple fast-forward
|
||||||
PULL_DIRS=(
|
PULL_DIRS=(
|
||||||
"/etc/nixos"
|
"/etc/nixos"
|
||||||
|
"${XDG_CONFIG_HOME:-$HOME/.config}/home-manager"
|
||||||
"${XDG_CONFIG_HOME:-$HOME/.config}/emacs"
|
"${XDG_CONFIG_HOME:-$HOME/.config}/emacs"
|
||||||
)
|
)
|
||||||
PULL_URLS=(
|
PULL_URLS=(
|
||||||
"https://git.xenia.me.uk/pixelifytica/nixos.git"
|
"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"
|
"https://git.xenia.me.uk/pixelifytica/emacs.git"
|
||||||
)
|
)
|
||||||
for i in "${!PULL_DIRS[@]}"; do
|
for i in "${!PULL_DIRS[@]}"; do
|
||||||
|
@ -51,5 +53,6 @@ for i in "${!PULL_DIRS[@]}"; do
|
||||||
else
|
else
|
||||||
echo "Not syncing repo $DIRECTORY on branch $(git branch --show-current)"
|
echo "Not syncing repo $DIRECTORY on branch $(git branch --show-current)"
|
||||||
fi
|
fi
|
||||||
|
git status --porcelain
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|
Reference in a new issue