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:

Published on: 06 Jun 2022