nixos/home/scripts/emacs-sync-config.sh

9 lines
196 B
Bash
Raw Normal View History

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