bash: `history-expand-line`
TLDR; <Alt-Shift-6>
expands history without running it
Bash's history expansion does things like expanding and running the previous command with !!<Enter>
. Using !!<Meta-^>
instead just expands the history entries inline without running them.
To type <Meta-^>
try:
<Esc>^
(since<Esc>
metafies next character)<Alt-Shift-6>
(since<Meta>
is usually mapped to<Alt>
)
Published on: 06 Jun 2022