Function: evil-ex-init-shell-argument-completion

evil-ex-init-shell-argument-completion is a byte-compiled function defined in evil-ex.el.

Signature

(evil-ex-init-shell-argument-completion FLAG &optional ARG)

Documentation

Prepare the current minibuffer for completion of shell commands.

This function must be called from the :runner function of some argument handler that requires shell completion.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-ex.el
(defun evil-ex-init-shell-argument-completion (flag &optional _arg)
  "Prepare the current minibuffer for completion of shell commands.
This function must be called from the :runner function of some
argument handler that requires shell completion."
  (when (and (eq flag 'start)
             (not evil--ex-shell-argument-initialized))
    (setq evil--ex-shell-argument-initialized t)
    (require 'shell)
    ;; Set up Comint for Shell mode, except
    ;; `comint-completion-at-point' will be called manually.
    (shell-completion-vars)
    (remove-hook 'completion-at-point-functions #'comint-completion-at-point t)))