Re:How to navigate directories faster with Bash (2015)
by pupdogg on Thursday April 22, 2021 @06:38AM
(#26901164)
[ESC + .] and [ALT + .] are most definitely news ones for me. Thank you. Always learn something new here!
[ Parent
| on HN ]
Re:How to navigate directories faster with Bash (2015)
by loulouxiv on Thursday April 22, 2021 @09:00AM
(#26902242)
https://www.gnu.org/software/bash/manual/html_node/Bindable-... is a must read.
Re:How to navigate directories faster with Bash (2015)
by alex_smart on Thursday April 22, 2021 @12:29PM
(#26904665)
Thanks, I discovered C-o thanks to you (even though I have gone through the bash manual several times).
No, more having to press C-r multiple times just to get sequential group of commands from history.
Re:How to navigate directories faster with Bash (2015)
by loulouxiv on Thursday April 22, 2021 @06:41PM
(#26909004)
Yes I was also impressed when I found out about this one. However I use it far less frequently than ALT-. . ALT-# is also useful in the frequent cases where I am constructing a complicated commmand but I have to run another command before the current one.
Also keep in mind that most interactive command-line tools are built upon readline and can understand all those bindings (think python REPL, mysql/psql...)
Re:How to navigate directories faster with Bash (2015)
by alex_smart on Thursday April 22, 2021 @08:27PM
(#26909723)
>However I use it far less frequently than ALT-.
Haha of course. I use it so frequently I can't imagine how anyone uses their shell without it.
>can understand all those bindings
I knew that but just being reminded helped me realize that C-o is probably going to be useful in the REPL as well. Thanks.