Add script to sync emacs config

Uses same basic logic as git-sync-all but only pulling with --ff-only
This commit is contained in:
Evie Litherland-Smith 2024-02-15 08:54:18 +00:00
parent 66238861b6
commit 769a16ef42
2 changed files with 10 additions and 0 deletions

View file

@ -4,6 +4,8 @@
(builtins.readFile ./nixos-upgrade.sh))
(pkgs.writeShellScriptBin "git-sync-all"
(builtins.readFile ./git-sync-all.sh))
(pkgs.writeShellScriptBin "emacs-sync-config"
(builtins.readFile ./emacs-sync-config.sh))
(pkgs.writeShellScriptBin "rsync-local-config"
(builtins.readFile ./rsync-local-config.sh))
(pkgs.writeShellScriptBin "xdg-query-program"

View file

@ -0,0 +1,8 @@
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