nixos/home/scripts/emacs-sync-config.sh
Evie Litherland-Smith 769a16ef42 Add script to sync emacs config
Uses same basic logic as git-sync-all but only pulling with --ff-only
2024-02-15 08:54:18 +00:00

9 lines
196 B
Bash

EMACS_DIR="$HOME/.emacs.d"
EMACS_CONF_URL="https://git.xenia.me.uk/xenia/emacs"
if [ ! -d "$EMACS_DIR" ]; then
git clone "$EMACS_CONF_URL" "$EMACS_DIR"
fi
git -C "$EMACS_DIR" pull --ff-only