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:
2
dotfiles/desktop/.bashrc.d/15-runit-desktop.sh
Normal file
2
dotfiles/desktop/.bashrc.d/15-runit-desktop.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
export SVDIR="$HOME/.local/runit/current"
|
||||
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent/socket"
|
||||
15
dotfiles/desktop/.bashrc.d/25-emacs-client-desktop.sh
Normal file
15
dotfiles/desktop/.bashrc.d/25-emacs-client-desktop.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
if command -v emacsclient >/dev/null 2>&1; then
|
||||
ec() {
|
||||
emacsclient -c -n "$@" || {
|
||||
printf '%s\n' "Emacs server is not available. Log into a graphical session and ensure the turnstile-managed 'emacs' service is running." >&2
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
et() {
|
||||
emacsclient -t "$@" || {
|
||||
printf '%s\n' "Emacs server is not available. Ensure the turnstile-managed 'emacs' service is running in your graphical session." >&2
|
||||
return 1
|
||||
}
|
||||
}
|
||||
fi
|
||||
Reference in New Issue
Block a user