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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user