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:
parent
66238861b6
commit
769a16ef42
|
@ -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"
|
||||
|
|
8
home/scripts/emacs-sync-config.sh
Normal file
8
home/scripts/emacs-sync-config.sh
Normal 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
|
Loading…
Reference in a new issue