mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Add turnstile Emacs service and stable ssh-agent
This commit is contained in:
11
dotfiles/desktop/.config/service/emacs/run
Executable file
11
dotfiles/desktop/.config/service/emacs/run
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent/socket"
|
||||
|
||||
if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then
|
||||
exec chpst -e "$TURNSTILE_ENV_DIR" emacs --fg-daemon
|
||||
fi
|
||||
|
||||
exec emacs --fg-daemon
|
||||
Reference in New Issue
Block a user