Permanently Deleted

77 points
*
Deleted by creator
permalink
report
reply
26 points
*

Yes. The only things I use regularly that arenโ€™t aliased to or replaced by a rust-built tool are mkdir, ln, and rsync.

  • cd: zoxide
  • ls: eza
  • cat: bat
  • grep: ripgrep
  • find: fd
  • sed: sd
  • du: dust
  • top/htop: btm
  • vi: helix
  • tmux: zellij (or wezterm mux)
  • diff: delta
  • ps: procs

Probably some others Iโ€™m forgetting

permalink
report
reply

I have a strong bias for staying with tools that are installed by default. After this many years working with new systems of my own, containers, and systems where Iโ€™m not root, the added value of an alternativehas to be quite high for me to switch a core utility.

Thay said, Iโ€™ve found fd, ripgrep, and helix to meet that criteria. The others, not so much; they either donโ€™t improve upon or add functionality thatโ€™s not available, or simply add eye candy. Gaining pretty colors is nice, but not worth losing familiarity with ubiquitous tools.

git-delta is an exception where the syntax highlighting can make a functional difference in code diffs. Not so much that I think about installing it, or using it outside of indirect VCS configuration, but it is a good example of using style for more than just eye candy. I prefer difftastic, but they do much the same.

While itโ€™s not a replacement for an existing tool and isnโ€™t in your list, nnn is very helpful in many cases, especially bulk renames and reorganizations.

permalink
report
parent
reply
2 points

they either donโ€™t improve upon or add functionality thatโ€™s not available, or simply add eye candy. Gaining pretty colors is nice, but not worth losing familiarity with ubiquitous tools.

The thing I like about a lot of these is that I donโ€™t lose familiarity with existing tools. When I end up on a cluster that doesnโ€™t have them, Iโ€™m a bit annoyed, but I can still operate just fine.

The principle exception to this is actually fd - I now find find (har!) almost unusable without having a man page open in a separate terminal. But thatโ€™s because fd is so much more ergonomic and powerful, I would never give it up unless forced.

permalink
report
parent
reply

I unfortunately do not have your crystaline perfect recall. I used vi/m for nearly 20 years before drifting onto kakoune and now helix; Iโ€™ve been using them for about a year, and itโ€™s getting harder and harder to not make reflexive mistakes when Iโ€™m trying to use vim. sed was already odd with regex escaping (parens but not brackets? Why??), and I know the less I use it the more Iโ€™ll forget. This is crippling when I have to work on a system that doesnโ€™t have these new tools installed.

permalink
report
parent
reply
1 point

While itโ€™s not a replacement for an existing tool and isnโ€™t in your list, nnn is very helpful in many cases, especially bulk renames and reorganizations.

Can you give an example on the reorganization benefits with nnn? I am using it myself but I still feel like a noob with it.

permalink
report
parent
reply

So, I did a whole asciinema demonstration to show you, but it was getting tedious. It started to turn into a whole tutorial, and I really didnโ€™t want to go there. Thatโ€™s why itโ€™s taken so long for me to reply.

But there are three things I do with nnn:

  • move things. I use the tabs (1-4) to open different directories, space-select multiple items, and โ€˜vโ€™ to move selected items to directories
  • bulk rename. Again, space-select and ctrl-r to bulk rename. Often, I donโ€™t even select, I just โ€˜Rโ€™ to bulk rename the whole directory. This opens my text editor with all of the file/Dir names; edit freely, save, exit, and nnn renames whatever changed.
  • move/copy to remote locations. With โ€˜cโ€™ nnn can mount a remote directory over ssh in a tab, and it works just like a local directory, with copying, moving, and renaming seamlessly between tabs.

I donโ€™t โ€œliveโ€ in nnn; itโ€™s a tool I open when I want to do certain things - itโ€™s fast enough to use this way. But you certainly could, since nnn can fork shell processes in selected directories.

permalink
report
parent
reply
3 points

Nice, I use almost all these! helix, btm, exa, and delta are wonderful.

permalink
report
parent
reply
22 points

If the current tools work fine, have decades of historic support and battle testing, and the alternatives offer little to no net benefit, uhh, why?

permalink
report
reply
13 points

But rust

permalink
report
parent
reply
1 point

Are you still using bash?

permalink
report
parent
reply
15 points

What for? Even if they have improvements in some areas, the original POSIX standard utilities will continue to be needed for script compatibility. Youโ€™re not going to swap them out - at best you can add them and then you just have an additional code base to support with additional attack surface to protect.

permalink
report
reply
8 points

The uutils project is aiming for full compatibility though, so eventually you will be able to just swap them out.

permalink
report
parent
reply
1 point

What for?

Personally, Iโ€™m a huge fan in unifying software under one language.

permalink
report
parent
reply
14 points

No. Those tools are tried and well tested. Yes there may still be bugs lurking but simply rewriting in Rust does not guarantee safety. I do hope that this: https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html doesnโ€™t get used in that repo.

That said, Iโ€™ll take a look in say five years and see how they are getting on.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word โ€œLinuxโ€ in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpรกr-Etele Mรฉder, licensed under CC BY 3.0

Community stats

  • 2K

    Monthly active users

  • 2.9K

    Posts

  • 16K

    Comments