Function: eshell-script-initialize
eshell-script-initialize is a byte-compiled function defined in
em-script.el.gz.
Signature
(eshell-script-initialize)
Documentation
Initialize the script parsing code.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-script.el.gz
;;; Functions:
(defun eshell-script-initialize () ;Called from `eshell-mode' via intern-soft!
"Initialize the script parsing code."
(setq-local eshell-interpreter-alist
(cons (cons (lambda (file _args)
(and (file-regular-p file)
(string= (file-name-nondirectory file)
"eshell")))
'eshell/source)
eshell-interpreter-alist))
(setq-local eshell-complex-commands
(append '("source" ".") eshell-complex-commands))
;; Run our startup scripts once this Eshell session has finished
;; initialization.
(add-hook 'eshell-after-initialize-hook #'eshell-run-startup-scripts 90 t))