From cf511ac1903db3071d920932ea5a166aa627ae77 Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Mon, 22 Jun 2026 22:31:41 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20add=20scripts/restart=20=E2=80=94=20sto?= =?UTF-8?q?p=20spine=20silently=20then=20start=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/restart | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/restart diff --git a/scripts/restart b/scripts/restart new file mode 100755 index 0000000..ac109c6 --- /dev/null +++ b/scripts/restart @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" + +# Stop spine if running; silently succeed if not +emacsclient --socket-name=spine --eval '(kill-emacs)' 2>/dev/null || true + +# Start spine with any passed arguments +exec "$SCRIPT_DIR/run" "$@"