News for hackers. Stuff that matters.
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by lpapez on Tuesday March 24, 2026 @05:50AM (#47500437)
You can simply add a shell alias with whatever name you like and move on.
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by qsera on Tuesday March 24, 2026 @05:55AM (#47500461)
True, but easier said than done, because one often need to work in more shells than their local machines..
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by pie_flavor on Tuesday March 24, 2026 @06:38AM (#47500736)
This is a nonstandard tool. If you can't customize your machine, you already don't have it.
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by qsera on Tuesday March 24, 2026 @07:47AM (#47501268)
But it could be one day..
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by worksonmine on Tuesday March 24, 2026 @07:36AM (#47501187)
Do something like this to fall back to plain grep. You will somehow have to share these configurations across machines though.

    alias g=grep
    command -v rg 2>&1/dev/null && alias g=rg
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by BiteCode_dev on Tuesday March 24, 2026 @06:54AM (#47500856)
You can't in most corporate env machines.

You may be able to download ripgrep, and execute it (!), but god forbid you can create an alias in your shell in a persistant manner.

Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by worksonmine on Tuesday March 24, 2026 @07:44AM (#47501250)
> You can't in most corporate env machines.

Really? "most" even? What CAN you do if you can't edit files in your own $HOME?

Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by pentaphobe on Tuesday March 24, 2026 @08:18AM (#47501551)
`[citation needed]`
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by OkayPhysicist on Tuesday March 24, 2026 @02:45PM (#47507332)
huh? If you can download and execute files, you can alias it. Either in your .bashrc file, or by making a symlink.
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by BiteCode_dev on Tuesday March 24, 2026 @03:05PM (#47507573)
I daily drive linux, but I hop from clients to clients and I have probably served about 200 different structures so far.

Most corporate machines are Windows boxes with ps and cmd.exe heavily restricted, no admin, and anti malware software surveilling I/O like a hawk.

You might get a git bash if you are lucky, but it's usually so slow it's completely unusable.

In one client I once tried to sneak in Clink. Flagged instantly by security and reported to HR.

It's easy to forget that life outside the HN bubble is still stuck there.

Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by OkayPhysicist on Tuesday March 24, 2026 @05:38PM (#47509771)
How can you possibly get development work done in an environment where you can even make a Microsoft.PowerShell_profile.ps1?
Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by BiteCode_dev on Wednesday March 25, 2026 @12:16PM (#47519426)
You will be even more horrified to learn that installing the entire list of deps of a project that would take a few seconds on my home laptop may take up to 20 minutes at some clients because many FS calls do a network round-trip.

We are not talking about exceptions either. This is pretty standard stuff when you work outside of the IT-literate companies.

This makes you see the entire world with a whole new perspective.

I always thought that all devs should spend a year doing tech support so that they get a reality check on what most humans actually have to deal with when working on a computer.

Re:Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} by keybored on Wednesday April 01, 2026 @05:18AM (#47598613)
Sixty-six words about capitalizing things properly and you think this is something that learning about shell aliases can solve. Impressive.