foss

  • jsdz@lemmy.ml
    link
    fedilink
    arrow-up
    28
    ·
    1 年前

    “bat” seemed interesting, until I remembered that I’d just do a “git diff” if I wanted to see a diff. The rest do not strike me as substantially better than what they’re trying to replace. Enjoy them all as you will, but I would recommend refraining from describing them as “modern unix” in the presence of any old-timers.

    • jellyfish@sh.itjust.works
      link
      fedilink
      arrow-up
      22
      ·
      edit-2
      1 年前

      Quite a few are just better, and others have the chance to get better because they’re actively accepting new features contributions.

      One I personally use:

      • delta Provides a better diff for code than git’s diff tool (even after trying all of git’s diff algorithms)
      • ripgrep So much faster than grep. Also had great include/exclude file filtering, easier to use than grep’s
      • jq Easy to exact json info. I tend to use rq too for yaml
      • instead of mcfly I use atuin, which is another alternative bash history. I really didn’t think I’d like it, but it’s been a big productivity boon
      • curlie/httpie A really nice alternative to something like postman when debugging HTTP connections. I use httpie rn but might switch because I’m so much more familiar with curl’s flags, but like the formatted output. There’s a few others I use that aren’t on the list too.

      It’s totally fine to not want to change what’s working for you, but if you do that too long you could miss out on something that just works better in your workflow. Give em a go and complain after you switch back.

      • kungen@feddit.nu
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        1 年前

        I love jq, but the rest doesn’t appeal too much to me – I’ve been in the game for so long, so I already memorize most useful flows in the normal corelibs. And because I won’t always have the alternative to install different stuff, I try to not depend on lots of non-standard software. But I’m glad you like it, FOSS is awesome.

        • jellyfish@sh.itjust.works
          link
          fedilink
          arrow-up
          7
          ·
          1 年前

          This used to be exactly what I said too, I still run bash as my terminal so when I remote it works the same way. I’m the girl everyone asks when they need a one liner, I read through the sed/awk man pages for fun, and I can skim a script and tell if it’s posix compliant. But I finally realized I already know that stuff. When I’m developing locally I should be as productive as possible. When I’m running stuff remotely I can worry about whether the environment is gnu, bsd, or busybox.

      • jsdz@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Well, I did overlook jq in there. Not the first time I’ve forgotten that it exists.

    • GlitzyArmrest@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 年前

      I use bat as a drop in replacement for cat (overriding cat in my .zshrc) by using --style=plain --paging=never on the bat command. Basically looks and works the same as cat, except with syntax highlighting.

    • Pantherina@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 年前

      Bat also adds lots of stuff to the output. Is there a clean print functionality without the extra numbers?

      Edit: but with the parameters its great!