5 ms·
In addition to all the other methods which have been mentioned bash has a function called history-expand-line which will expand the history inline. That allows
by brian_cloutier 10y ago
In addition to all the other methods which have been mentioned bash has a function called history-expand-line which will expand the history inline. That allows you to even keep editing it before you hit enter. By default it's bound to the terrible M-^ (Alt-^) which might explain why nobody knows about it.
history-expand-line is documented in: https://www.gnu.org/software/bash/manual/html_node/Miscellaneous-Commands.html https://www.gnu.org/software/bash/manual/html_node/Miscellan...
- lolive 10y agoIs it the same as Ctrl-Alt-e ?
- brian_cloutier 10y agoSure is, it appears to do the same thing