News for hackers. Stuff that matters.
Re:Let's release Rust-based fish by mtxlan on Monday July 29, 2024 @09:43AM (#41100378)
What difference from ZSH, any reason I have to use it over other?

As my understaning it bring bunch of features out of box, syntax highligh, tab completion etc.?

Re:Let's release Rust-based fish by robin_reala on Monday July 29, 2024 @09:45AM (#41100393)
Faster, simpler and nicer to use, in my limited experience of ZSH. A focus on great defaults rather than expandability. But then I’m somewhat biased, having settled on Fish over a decade ago. ZSH might be better now.
Re:Let's release Rust-based fish by pizza234 on Monday July 29, 2024 @09:55AM (#41100462)
Can you elaborate on "simpler and nicer to use"? The last time I've seen a description the differences, they were just minor simplifications of bashisms, like iterating an array, which don't simplify the experience significantly.
Re:Let's release Rust-based fish by drcongo on Monday July 29, 2024 @11:55AM (#41101397)
I switched to Fish about a decade ago too. "simpler and nicer to use" is a good summary, but to flesh it out a bit from my perspective: given how much time I spend in the terminal, the every day ergonomics are quite important to me. I used to use ZSH with oh-my-zsh and a bunch of plugins, over the years this got slower and slower, and the maintenance burden got annoying. It got to a point where opening a new terminal window would take maybe 5 seconds before it was ready to use. I tried Fish one day, and literally everything I'd customised ZSH to do came for free out of the box, no plugins, no maintenance. Startup time was instant. I now use Fish with a Starship prompt and I'm never going back.
Re:Let's release Rust-based fish by Twirrim on Tuesday July 30, 2024 @09:09AM (#41108786)
The speed impact is one reason I've never liked oh-my-zsh and similar for other shells.

It's also why I love starship https://starship.rs/. Lots of plug-ins to customise what I want at the prompt, and all of it native compiled such that it executes in milliseconds.

Re:Let's release Rust-based fish by mtxlan on Monday July 29, 2024 @09:58AM (#41100489)
Yeah, that great we have a lot of different opinion on thing and tools. For personal use i would try it. But for server side we as usual stick to default shipment, vim, zsh etc
Re:Let's release Rust-based fish by kemotep on Monday July 29, 2024 @10:31AM (#41100769)
What installs zsh by default? From my understanding you have to choose to go out of your way to use zsh over bash (or in some cases dash).
Re:Let's release Rust-based fish by alxhill on Monday July 29, 2024 @11:02AM (#41101008)
zsh has been the default on macOS for a while now so it's pretty commonly used
Re:Let's release Rust-based fish by yjftsjthsd-h on Monday July 29, 2024 @03:12PM (#41102878)
Sure, but the comment was

> But for server side we as usual stick to default shipment, vim, zsh etc

And macOS isn't a server OS.

Re:Let's release Rust-based fish by mirashii on Monday July 29, 2024 @11:03AM (#41101013)
zsh has been default on MacOS for a while, after bash started licensing as GPLv3.
Re:Let's release Rust-based fish by mtxlan on Monday July 29, 2024 @12:30PM (#41101658)
MacOS uses zsh by default
Re:Let's release Rust-based fish by vindex10 on Tuesday July 30, 2024 @09:20AM (#41108885)
One of the important differences with bash, which is not dramatic but kind of low level is lack of `>()` process substitution.

https://github.com/fish-shell/fish-shell/issues/1786

It is worth mentioning that exists `<()` and is implemented via a helper command `psub`: https://fishshell.com/docs/current/cmds/psub.html

Re:Let's release Rust-based fish by 3PS on Monday July 29, 2024 @03:50PM (#41103176)
> As my understaning it bring bunch of features out of box, syntax highligh, tab completion etc.?

I think this is a good summary. The best thing about fish is that you don't need to install any plugins to get all of the nice things that other people put a lot of effort into configuring: tab completion, syntax highlighting, and so on. It's also just really comfortably ergonomic in a way that is hard to describe unless you've used it - multiline commands automatically update their indentation as you type, completions for most common programs come pre-bundled, you can easily set environment variables globally across all of your shell instances without fiddling with config files or reloading your shells, and so on.