• Nalivai@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    14 days ago

    What shell are you using? In both bash and zsh, !! is a substitute for a previous command

      • Nalivai@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        13 days ago

        Oof. Posix non-compliant stuff always gives me the ick.
        I highly recommend switching to zsh, it can do the same stuff and more, and it is actually a proper terminal. Switching scripts might be a bit complicated if you’re deep into it, but it’s worth it

        • obnomus@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 days ago

          All I do in terminal is type, I don’t know scripting. But I heard a lot of things about zsh.

          • Nalivai@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            12 days ago

            Oh-my-zsh is a good start then. It gives you a bunch of themes and presets and plugins so you can do whatever you want with your zsh