Make TRAMP (and vterm over tramp) work better

Finally set TRAMP environment from remote .profile
This commit is contained in:
Evie Litherland-Smith 2023-10-17 17:11:29 +01:00
parent c66126d0cf
commit 72a71caa6a

View file

@ -126,26 +126,14 @@
'(("d" "default" plain "%?"
:target (file+head "${slug}.org" "#+title: ${title}\n")))))
;; VTERM settings
(after! vterm
(setq vterm-tramp-shells
'(("ssh" "/bin/bash")
("sshx" "/bin/bash"))))
;; TRAMP host specific configs
(after! tramp
(setq tramp-default-method "sshx"
tramp-default-remote-shell "/bin/bash"
tramp-remote-path '("~/.local/bin"
"/run/wrappers/bin"
"/run/current-system/sw/bin"
tramp-default-remote-path
"/bin"
"/usr/bin"
"/sbin"
"/usr/sbin"
"/usr/local/bin"
"/usr/local/sbin"
"/local/bin"
"/local/freeware/bin"
"/local/gnu/bin"
"/usr/freeware/bin"
"/usr/pkg/bin"
"/usr/contrib/bin"
"/opt/bin"
"/opt/sbin"
"/opt/local/bin")))
tramp-default-remote-shell "/bin/sh"
tramp-remote-path '(tramp-own-remote-path tramp-default-remote-path)))