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'
This commit is contained in:
@@ -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)."
|
"Launch Hermes Agent in vterm via SSH to lazyworkhorse (CLI mode)."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((buf (get-buffer-create "*hermes*")))
|
(let ((buf (get-buffer-create "*hermes*")))
|
||||||
(delete-other-windows)
|
|
||||||
(switch-to-buffer buf)
|
(switch-to-buffer buf)
|
||||||
(unless (get-buffer-process buf)
|
(unless (and (eq major-mode 'vterm-mode)
|
||||||
(vterm buf)
|
(get-buffer-process buf))
|
||||||
|
(vterm-mode)
|
||||||
(let ((proc (get-buffer-process buf)))
|
(let ((proc (get-buffer-process buf)))
|
||||||
(when proc
|
(when proc
|
||||||
(process-send-string
|
(process-send-string
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ alias emacs="emacsclient -c -a emacs"
|
|||||||
alias oc="opencode"
|
alias oc="opencode"
|
||||||
|
|
||||||
# Hermes Agent - SSH directly to remote server
|
# 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
|
# Yazi
|
||||||
alias y="yazi"
|
alias y="yazi"
|
||||||
|
|||||||
Reference in New Issue
Block a user