This question already has an answer here:
In bash, what is the shortcut to recall the last command without any arguments?
That seems to be the one shortcut that is missing form the various guides I have found, such as https://linuxconfig.org/linux-command-line-bash-shell-shortcuts
I would like the last used command to appear on the command line with the cursor at the end of the line so I can type the new argument I wish to supply.
Furthermore, I would like to achieve this with a single shortcut key combination along the lines of CTRL+P
!:0 does not work because it actually executes the command without giving me an opportunity to enter new argument(s).
Meta+Ctrl+e fails to produce any results in bash for me. However, the following indicates it should work, assuming
\e refers to Alt
bind -P | grep shell-expand-line shell-expand-line can be found on "\e\C-e".
I'm running Arch.