feat: add scripts/restart — stop spine silently then start it

This commit is contained in:
2026-06-22 22:31:41 -04:00
parent ca03e87a46
commit cf511ac190
+10
View File
@@ -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" "$@"