3 ms·
> explain what Fish does differently to zsh or bash Fish adds a bunch of features that, when you think about it, should have been standard a long time ago… lik
by alwillis 3y ago
> explain what Fish does differently to zsh or bash
Fish adds a bunch of features that, when you think about it, should have been standard a long time ago… like creating auto-completions from man pages, syntax highlighting on the command line and 24-bit color out of the box. Little things like providing autocompletion of targets if you happen to be in a directory with a Makefile and autocompletion for apt, rpm and yum package managers.
macOS users: Fish can autocomplete brew [0] commands and packages too. Super handy.
As I often see on HN, yes, you can plugin and script your way to adding these features to Bash and Zsh; the beauty of Fish is you get all of this out of the box without having to configure anything. Bash and Zsh plugins require another layer of management and (often) slow things down.
It's one of the first things I install on a new Mac and have made it the default on my FreeBSD machines as well.
Developer Brett Terpstra has a blog post series [1] about going from Bash to Fish; reading this helped me take the plunge. If you're a Bash enthusiast as Brett is/was, make sure to read his first article "Branching out from Bash: Fishing expedition" [2].
[0]: https://docs.brew.sh/Shell-Completion#configuring-completions-in-fish https://docs.brew.sh/Shell-Completion#configuring-completion...
[1]: https://brettterpstra.com/topic/fish/ https://brettterpstra.com/topic/fish/
[2]: https://brettterpstra.com/2019/10/11/branching-out-from-bash-fishing-expedition/ https://brettterpstra.com/2019/10/11/branching-out-from-bash...