Function: tramp--enable-wslc-method
tramp--enable-wslc-method is an autoloaded and byte-compiled function
defined in tramp-container.el.gz.
Signature
(tramp--enable-wslc-method)
Documentation
Enable connection to WSL containers.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-container.el.gz
;;;###tramp-autoload
(defun tramp--enable-wslc-method ()
"Enable connection to WSL containers."
(add-to-list 'tramp-methods
`(,tramp-wslc-method
(tramp-login-program ,tramp-wslc-program)
(tramp-login-args (("exec")
("-it")
("-u" "%u")
("-e" ,(format "TERM=%s" tramp-terminal-type))
("%h")
("%l")))
(tramp-direct-async (,tramp-default-remote-shell "-c"))
(tramp-remote-shell ,tramp-default-remote-shell)
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-i" "-c"))
(tramp-completion-use-cache nil)))
(tramp-set-completion-function
tramp-wslc-method
`((tramp-wslc-completion-function ,tramp-wslc-method))))