Hacker News new | ask | show | jobs
by brimstedt 1547 days ago
Anyone know of a good comparison between the different shells?
2 comments

There are several feature comparison tables for numerous shells here: https://en.wikipedia.org/wiki/Comparison_of_command_shells
Here is my TLDR:

Writing scripts: #!/usr/bin/env bash (or #!/usr/bin/env sh for POSIX-compliance)

Use fish for interactive shell. It's faster than zsh

Zsh seem to have more plugins

In what ways is fish faster than zsh?

I can be believe it’s faster than a poorly configured zsh (which unfortunately is quite common), but would be curious to see actual test results, with things like “input lag”, “time to first prompt”, “command lag”, etc. like is measured with the excellent zsh-bench (https://github.com/romkatv/zsh-bench#what-it-measures)

I've never tried zsh. I remember reading in the interwebz that if you go towards feature-parity with fish in a zsh setup, the latencies here and there, adds up and makes it slower than fish. Here is a relevant blog post: https://carlosbecker.com/posts/fish/

But yeah, I don't have any proofs.

Yeah, that blog post is doing exactly what https://github.com/romkatv/zsh-bench#how-not-to-benchmark says not to do...