Compare commits
1 Commits
v0.1.0
..
a2e7164bfd
| Author | SHA1 | Date | |
|---|---|---|---|
|
a2e7164bfd
|
+6
-4
@@ -15,10 +15,12 @@ similarly to how it is implemented for Docker, Podman, and other programs.
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package incus-tramp
|
(use-package incus-tramp
|
||||||
:ensure t
|
:ensure nil
|
||||||
:after tramp :vc (incus-tramp :url https://github.com/mdnight/incus-tramp.git
|
:after tramp
|
||||||
:branch main)
|
:vc (incus-tramp :url "https://github.com/mdnight/incus-tramp.git"
|
||||||
:config (incus-tramp-enable-method))
|
:rev "v0.1.0")
|
||||||
|
:config
|
||||||
|
(incus-tramp-enable-method))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Usage
|
** Usage
|
||||||
|
|||||||
+2
-2
@@ -68,8 +68,8 @@
|
|||||||
(defun incus-tramp-enable-method ()
|
(defun incus-tramp-enable-method ()
|
||||||
(with-eval-after-load 'tramp
|
(with-eval-after-load 'tramp
|
||||||
(add-to-list 'tramp-methods
|
(add-to-list 'tramp-methods
|
||||||
`(,incus-tramp-method
|
`(incus-tramp-method
|
||||||
(tramp-login-program ,incus-tramp-incus-program)
|
(tramp-login-program incus-tramp-incus-program)
|
||||||
(tramp-login-args (("exec") ("%h") (,(format "--env TERM=%s" tramp-terminal-type)) ("--") ("%l")))
|
(tramp-login-args (("exec") ("%h") (,(format "--env TERM=%s" tramp-terminal-type)) ("--") ("%l")))
|
||||||
(tramp-direct-async (,tramp-default-remote-shell "-c"))
|
(tramp-direct-async (,tramp-default-remote-shell "-c"))
|
||||||
(tramp-remote-shell ,tramp-default-remote-shell)
|
(tramp-remote-shell ,tramp-default-remote-shell)
|
||||||
|
|||||||
Reference in New Issue
Block a user