fix: update zsh alias to direct SSH, fix Emacs function with delete-other-windows and correct docker exec path

- Zsh alias now runs ssh + docker exec directly (no emacsclient)
- Emacs function uses delete-other-windows for clean single-window vterm
- SSH command uses correct docker exec path: /opt/hermes/.venv/bin/hermes
- config.el not included - user will tangle from README.org
This commit is contained in:
Thierry Pouplier
2026-05-01 15:02:19 +00:00
parent d73ed29733
commit a09a7c03ef
2 changed files with 5 additions and 3 deletions

View File

@@ -1841,12 +1841,14 @@ Hermes Agent runs on lazyworkhorse server. Launched via SSH in a vterm buffer.
"Launch Hermes Agent in vterm via SSH to lazyworkhorse (CLI mode)."
(interactive)
(let ((buf (get-buffer-create "*hermes*")))
(delete-other-windows)
(switch-to-buffer buf)
(unless (get-buffer-process buf)
(vterm buf)
(let ((proc (get-buffer-process buf)))
(when proc
(process-send-string proc "ssh -t lazyworkhorse hermes\n")))))))
(process-send-string
proc "ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'\n")))))))
#+end_src
* Tramp

View File

@@ -19,8 +19,8 @@ alias emacs="emacsclient -c -a emacs"
# Opencode
alias oc="opencode"
# Hermes Agent in Emacs vterm
alias hermes="emacsclient -n -c -e '(gortium/hermes-vterm)'"
# Hermes Agent - SSH directly to remote server
alias hermes="ssh lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'"
# Yazi
alias y="yazi"