Variable: eshell-prepare-command-hook

eshell-prepare-command-hook is a customizable variable defined in esh-cmd.el.gz.

Value

nil

Documentation

A set of functions called to prepare a named command.

The command name and its argument are in eshell-last-command-name and eshell-last-arguments. The functions on this hook can change the value of these symbols if necessary.

To prevent a command from executing at all, set eshell-last-command-name to nil.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defcustom eshell-prepare-command-hook nil
  "A set of functions called to prepare a named command.
The command name and its argument are in `eshell-last-command-name'
and `eshell-last-arguments'.  The functions on this hook can change
the value of these symbols if necessary.

To prevent a command from executing at all, set
`eshell-last-command-name' to nil."
  :type 'hook)