How can I set up my bash to replace ESCAPE+_ with the last word from the previous command?
migrated from serverfault.com Jan 27 '13 at 16:05
This question came from our site for professional system and network administrators.
In the readline library that bash uses for these commands, the command for manipulating the shell history in this fashion is
yank-last-arg (M-., M-_)
You can use either; or you can bind it to another sequence in your
which would bind it to Mod1p.
You can also use