From a09a7c03ef948be21feacec72c136ddf7e8cb1b4 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Fri, 1 May 2026 15:02:19 +0000 Subject: [PATCH] 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 --- doom/.config/doom/README.org | 4 +++- zsh/.zshrc | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index a54ebbb..d3088ff 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -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 diff --git a/zsh/.zshrc b/zsh/.zshrc index 7cd3b74..072f6ee 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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"