eshell-prepare-command-hook
eshell-prepare-command-hook is a variable defined in `
esh-cmd.el
'.
Its value is
nil
- This variable may be risky if used as a file-local variable.
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.
You can customize this variable.