Function: eshell-alias-completions

eshell-alias-completions is a byte-compiled function defined in em-alias.el.gz.

Signature

(eshell-alias-completions NAME)

Documentation

Find all possible completions for NAME.

These are all the command aliases which begin with NAME.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-alias.el.gz
(defun eshell-alias-completions (name)
  "Find all possible completions for NAME.
These are all the command aliases which begin with NAME."
  (let (completions)
    (dolist (alias eshell-command-aliases-list)
      (if (string-match (concat "^" name) (car alias))
	  (setq completions (cons (car alias) completions))))
    completions))