From 386d1a3bf83ebf55f9325e80b25e78b79e8a78f3 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Fri, 1 May 2026 15:06:05 +0000 Subject: [PATCH] fix: add ssh -t to zsh alias, use vterm-mode instead of vterm in Emacs function - zsh alias: added -t to SSH (docker exec -it needs a TTY) - Emacs function: vterm-mode instead of vterm (vterm splits windows, vterm-mode is just a major mode, keeps current window layout) - The SSH command in both cases is now consistent: ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes' --- doom/.config/doom/README.org | 6 +++--- zsh/.zshrc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index d3088ff..bc5f6be 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -1841,10 +1841,10 @@ 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) + (unless (and (eq major-mode 'vterm-mode) + (get-buffer-process buf)) + (vterm-mode) (let ((proc (get-buffer-process buf))) (when proc (process-send-string diff --git a/zsh/.zshrc b/zsh/.zshrc index 072f6ee..0afbe72 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -20,7 +20,7 @@ alias emacs="emacsclient -c -a emacs" alias oc="opencode" # Hermes Agent - SSH directly to remote server -alias hermes="ssh lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'" +alias hermes="ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'" # Yazi alias y="yazi"