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

  • kik2civeswt1@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 小时前

    There’s already some great answers in the thread, so I won’t add to those.

    Some shortcuts are shell-specific. For example, !!, !:$, and ^old^new are in bash, but not in fish.

    Some things, like Alt-. and Ctrl-a, are implemented by readline, which can be used elsewhere, as well, for example in the python interpeter.

    Depending on your context, it may be better to invest time learning methods implemented by readline. While not necessarily universal, they are more versatile.

    There were heaps of functions I was using not realising they were from readline. For example, Ctrl-r for reverse interactive search, Ctrl-a/e for start/beginning if line, Ctrl-w for deleting a word.