Function: eshell-maybe-replace-by-alias--which

eshell-maybe-replace-by-alias--which is a byte-compiled function defined in em-alias.el.gz.

Signature

(eshell-maybe-replace-by-alias--which COMMAND)

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-alias.el.gz
(defun eshell-maybe-replace-by-alias--which (command)
  (unless (and eshell-prevent-alias-expansion
               (member command eshell-prevent-alias-expansion))
    (when-let* ((alias (eshell-lookup-alias command)))
      (concat command " is an alias, defined as \"" (cadr alias) "\""))))