Maybe there is a tool that does that? Maybe I'm doing this all wrong and there is a different way I should browse?

you are viewing a single comment's thread
view the rest of the comments
[–] 20 points 1 day ago (3 children)

Type cd then press Alt+. and it'll copy the last argument of the previous command, make sure it's what you want, and press Enter.

  • source
  • hideshow 3 child comments
  • [–] 3 points 22 hours ago (2 children)

    Nice, I don't remember having seen that before. I'm sure I'll just keep using !$, because muscle memory, but I like seeing new approaches.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 18 hours ago (1 child)

    The shell, and lots of other things that take per-line input, use readline to do it. The readline man page is... extensive... to say the least. There are many more useful shortcuts in there, but I doubt anyone uses more than a fraction of them.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 58 minutes ago

    I remember delving into the documentation maybe 15 years ago. Even then it was a bit much. I remember changing whatever setting I was looking for, and thinking one day I'd look back through it at my leisure. Well, that never happened.

  • source
  • parent