Re-add pulling emacs config to git-sync-all.sh

This commit is contained in:
Evie Litherland-Smith 2024-05-22 07:08:06 +01:00
parent 4bef95a5d2
commit 0d399318d5

View file

@ -1,3 +1,17 @@
# Clone ~/.emacs.d/ if it doesn't exist, pull otherwise (ff only)
DIRECTORY="$HOME/.emacs.d/"
URL="https://git.xenia.me.uk/pixelifytica/emacs.git"
echo "--- ~/.emacs.d/ ---"
if [ ! -d "$DIRECTORY" ]; then
git clone "$URL" "$DIRECTORY"
fi
(
cd "$DIRECTORY" || exit
git remote set-url origin "$URL"
git pull --ff --ff-only
git status --porcelain
)
# Sync common directories, setting url to ensure it's up-to-date first # Sync common directories, setting url to ensure it's up-to-date first
SYNC_DIRS=( SYNC_DIRS=(
"$HOME/.password-store/" "$HOME/.password-store/"