foss

  • jsdz@lemmy.ml
    link
    fedilink
    arrow-up
    26
    ·
    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.

    • GlitzyArmrest@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      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 year ago

      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!

      • lemmesay@discuss.tchncs.de
        link
        fedilink
        arrow-up
        15
        ·
        1 year ago

        not actually. I also use many programs that are MIT or BSD licensed.

        it’s just that replacing working GPL’d programs with MIT ones might be more appealing to corporations than someone like me who cares as much about ideology as the programmes themselves.

        I don’t wish to see services being sucked for their value by corporates who give little to nothing in return. history is replete with such instances.

        • Linus_Torvalds@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          I do understand your scepticism towards companies; the reason for my question was that I got the impression from your first comment that you don’t like/install MIT code and was just confused as to why someone might dislike that.

    • Rob Bos@lemmy.ca
      link
      fedilink
      arrow-up
      11
      ·
      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
        11
        arrow-down
        1
        ·
        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.

    • Schmeckinger@feddit.de
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      Probably because that’s basically the default license rust projects use and a lot of this stuff is made in rust.

  • simonced@lemmy.one
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    Great list, but a couple could be added:

    • btop (process/resouces monitor, highly customizable)
    • lnav (log navigator, grouping folder of files in one display, search/filter etc…)
    • xcjs@programming.dev
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      Rust specializes in making parallel processing secure and approachable, so it’s going get used in problems where parallel processing and efficiency matter.

      Rust is also now allowed to be used in the Linux kernel for the same reasons, which is exciting!

  • bundes_sheep@lemmy.one
    link
    fedilink
    arrow-up
    9
    ·
    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
      7
      ·
      edit-2
      1 year ago

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

  • george@lemmy.org.il
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Oh broot is really cool. Better than exa --tree, because it has that sweet “xxx hidden” thing. This command makes it pretty close to tree, as it prints it out rather than present you with an interactive screen, which I’m not interested at:

    broot --sort-by-type-dirs-first --cmd :print_tree
    
  • dorumon@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    These programs are actually really cool and I un-ironically want to use them.