Variable: shell-input-autoexpand

shell-input-autoexpand is a customizable variable defined in shell.el.gz.

Value

history

Documentation

If non-nil, expand input command history references on completion.

This mirrors the optional behavior of tcsh (its autoexpand and histlit).

If the value is input, then the expansion is seen on input. If the value is history, then the expansion is only when inserting into the buffer's input ring. See also comint-magic-space and comint-dynamic-complete-functions.

This variable supplies a default for comint-input-autoexpand, for Shell mode only.

Probably introduced at or before Emacs version 19.23.

Source Code

;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defcustom shell-input-autoexpand 'history
  "If non-nil, expand input command history references on completion.
This mirrors the optional behavior of tcsh (its autoexpand and histlit).

If the value is `input', then the expansion is seen on input.
If the value is `history', then the expansion is only when inserting
into the buffer's input ring.  See also `comint-magic-space' and
`comint-dynamic-complete-functions'.

This variable supplies a default for `comint-input-autoexpand',
for Shell mode only."
  :type '(choice (const :tag "off" nil)
		 (const input)
		 (const history)
		 (const :tag "on" t))
  :group 'shell)