News for hackers. Stuff that matters.
Re:How to navigate directories faster with Bash (2015) by henrik_w on Thursday April 22, 2021 @08:29AM (#26901966)
escpae-dot (.) also works for this: "It also works to use !$ instead of escape-dot, but that is slightly harder to type, so I don’t use that anymore."

Wrote about it here: https://henrikwarne.com/2018/08/11/my-favorite-command-line-...

Re:How to navigate directories faster with Bash (2015) by loulouxiv on Thursday April 22, 2021 @08:56AM (#26902190)
Which you can type as ALT-.
Re:How to navigate directories faster with Bash (2015) by yrro on Thursday April 22, 2021 @09:00AM (#26902243)
This is the `yank-last-arg` readline comment. Bound to M-. and M-_ by default.

"Insert last argument to the previous command (the last word of the previous history entry). With a numeric argument, behave exactly like yank-nth-arg. Successive calls to yank-last-arg move back through the history list, inserting the last word (or the word specified by the argument to the first call) of each line in turn."

https://tiswww.case.edu/php/chet/readline/readline.html#IDX9...

Its sibling is `yank-nth-arg`, bound to M-C-y. So if you want the 2nd argument from the last command, you can press M-1 followed by M-C-y (yeah, arguments are indexed from 0)...

https://tiswww.case.edu/php/chet/readline/readline.html#IDX9...