foss

  • jsdz@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    “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
      1
      ·
      edit-2
      1 year ago

      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.

    • Rob Bos@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      It would be cool if the GNU project sponsored a new updated ‘standard’ set of tools though.

      • dsemy@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Why would they? The “old” tools work very well, are well known and are likely used in millions of scripts.

        The new tools will have more bugs, unfamiliar options and unexpected behavior (due to them being new), and the improvements current “modern” alternatives bring to the table are often very minor.

        • Rob Bos@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I’d expect they’d ‘adopt’ the tools and redistribute them under the GPL, if they did.

  • bundes_sheep@lemmy.one
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Are these built to handle pipes? If I bat a file and redirect it to a file, does it work as expected or does it add in the escape sequences for the colors, for example?

    • Phi@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      bat foo | bar behaves like cat foo | bar same with > and such.