feat: add scripts/restart — stop spine silently then start it
This commit is contained in:
Executable
+10
@@ -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" "$@"
|
||||||
Reference in New Issue
Block a user