nixos/system/home/scripts/shell/sync-emacs.sh
Evie Litherland-Smith ac6e12ec99 Rename gsync/esync -> sync-git/emacs respectively
Realised there's a real program in the GNU coreutils called gsync so
wanted to avoid a collision
2024-10-23 08:19:13 +01:00

15 lines
427 B
Bash
Executable file

# Clone ~/.config/emacs/ if it doesn't exist
EMACS_DIR="$HOME/.emacs.d"
if [ ! -d "$EMACS_DIR" ]; then
git clone "https://git.xenia.me.uk/pixelifytica/emacs.git" "$EMACS_DIR"
fi
(
cd "$EMACS_DIR" || exit 1
# Pull changes by fast-forwarding only
git pull --ff --ff-only
# Update submodules for local packages
git submodule update --init --recursive
# Install and update extensions
make install
)