Function: eshell-tramp-initialize

eshell-tramp-initialize is a byte-compiled function defined in em-tramp.el.gz.

Signature

(eshell-tramp-initialize)

Documentation

Initialize the Tramp-using commands code.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-tramp.el.gz
(defun eshell-tramp-initialize ()   ;Called from `eshell-mode' via intern-soft!
  "Initialize the Tramp-using commands code."
  (when (eshell-using-module 'eshell-cmpl)
    (add-hook 'pcomplete-try-first-hook
	      'eshell-complete-host-reference nil t))
  (setq-local eshell-complex-commands
              (append '("su" "sudo" "doas")
                      eshell-complex-commands)))