magic-space expand sequence referring to the command history in place, so you have a chance to review before executing.
--- a/.inputrc Sun Nov 12 11:02:48 2023 +0200
+++ b/.inputrc Sun Nov 12 13:44:06 2023 +0200
@@ -74,6 +74,7 @@
# shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the
# editor, in that order.
"\C-x\C-e": edit-and-execute-command
+# magic-space expand sequence referring to the command history in place, so you have a chance to review before executing.
Space: magic-space
$endif
@@ -87,6 +88,7 @@
"\C-_": undo
"\C-]": character-search
"\e\C-]": character-search-backward
+"\er": revert-line
# Ctrl+Left/Right to move by whole words. XTerm/Mintty.
"\e[1;5C": forward-word