(emacs)History References


Prev: Shell History Copying Up: Shell History

Shell History References
........................

   Various shells including csh and bash support "history references"
that begin with `!' and `^'.  Shell mode now understands this syntax.
If you insert a history reference and type TAB, this searches the input
history for a matching command, performs substitution if necessary, and
places the result in the buffer in place of the history reference.  For
example, you can fetch the most recent command beginning with `mv' with
`! m v TAB'.  You could then resubmit this command to the shell by
typing RET as usual.


automatically generated by info2www