Live data from Hacker News

Fish 3.4.0

fishshell.com

31–40 of 93 posts

Re: Fish 3.4.0

#31
post #25

Fish is so great! I'm a user for 7 years. The autocomplete suggestions are so helpful! However, since using Github Copilot I'm expecting a bit smarter suggestions. I wonder if anyone has tried putting a GPT-3 like engine behind command line autocomplete suggestions. Or maybe the Copilot team offer a sort of API for this.

Not GPT-3, but you may be interested in this: https://github.com/cantino/mcfly

Re: Fish 3.4.0

#32
post #9

Just loving every single bit of it since I switched to it. Had a couple of thoughts of migrating to zsh mostly because its more POSIX compliant but it doesn't look like such a valid argument as time passes by

My company has default shell as zsh so every tool assumes that. How can I switch to fish in such an environment?

Isn’t the first line a shebang that would tell which she’ll to run it with?

`#! /usr/bin/env zsh`

Re: Fish 3.4.0

#33
post #25

Fish is so great! I'm a user for 7 years. The autocomplete suggestions are so helpful! However, since using Github Copilot I'm expecting a bit smarter suggestions. I wonder if anyone has tried putting a GPT-3 like engine behind command line autocomplete suggestions. Or maybe the Copilot team offer a sort of API for this.

Not GPT-3, but you may be interested in this: https://github.com/cantino/mcfly

Anybody on HN who's using this and wants to share their experience? It looks interesting, how does it compare against fish?

Re: Fish 3.4.0

#34

Earlier quoted context omitted.

> Always recommend people to use fish if they're not the "customize everything everywhere to my liking" type. Fully agree. It feels like fish is the Apple of shells, in that regard. Unless you really love to tinker with your shell, the great defaults and great UX make it really easy to recommend.

Is Fish difficult to customize? Just curious since I do tend to customize everything to some degree to fit my personal prefs.

I'm a previous bash user who now uses fish and loves to customize everything, and compared to bash, customizing fish is a joy. Its so much easier to do, using oh-my-fish brings a great selection of plugins (admittedly lots of them are inspired or clones of oh-my-zsh plugins) and writing plugins is a breeze as well.

Re: Fish 3.4.0

#35

Earlier quoted context omitted.

> Always recommend people to use fish if they're not the "customize everything everywhere to my liking" type. Fully agree. It feels like fish is the Apple of shells, in that regard. Unless you really love to tinker with your shell, the great defaults and great UX make it really easy to recommend.

I find myself customizing fish way more than I ever did with Bash. Writing custom completions is easy and I find the scripting syntax a lot nicer. Combining the two is really powerful. Granted, fish ships with a ton of completions out of the box so you may not need to write your own.

And if some tool you use doesn't have completions, writing completions for fish are infinitely easier than bash

Re: Fish 3.4.0

#36

Earlier quoted context omitted.

Not GPT-3, but you may be interested in this: https://github.com/cantino/mcfly

Anybody on HN who's using this and wants to share their experience? It looks interesting, how does it compare against fish?

You can use it with fish. Here are a couple of previous threads on it:

https://news.ycombinator.com/item?id=18593015 https://news.ycombinator.com/item?id=23758138

Re: Fish 3.4.0

#37
post #5

Any other long-suffering bash user switched to fish and never looked back? Why? Have you switched and ended up coming back to bash? Why? - Long-suffering bash user

I have used fish for so many years I have lost track. Maybe 10 years. Occasionally I need bash and then I just launch a bash shell. But I have gotten fish to work with pretty much everything I need without problems whether prompts or Python environments. Fish excels as an everyday interactive shell. I never program shell scripts. I write Julia code whenever something equivalent of a shell script is needed. Before tha…

What do you use for Python environments? I couldn't get that to work properly the last time I tried.

Re: Fish 3.4.0

#38
post #5

Any other long-suffering bash user switched to fish and never looked back? Why? Have you switched and ended up coming back to bash? Why? - Long-suffering bash user

Switched and came back after about 3 years (to zsh).

Fish is nice in many ways, but it kinda lives up to its "A command line for the 90's" slogan. It's better than what came before it, but I'm not sure it's better enough. Using a non-POSIX shell can feel like death by 1000 cuts sometimes, and I wasn't sure the benefits of Fish were worth the cost. Also, scripting feels like a bit of an afterthought in Fish and that's a very important part of a shell to me.

These days I'm feeling optimistic about Nushell; it's not quite ready for most people to use as a daily driver, but it's getting there and it has a much stronger value proposition than Fish.

Re: Fish 3.4.0

#39

Anyone know of a good comparison between the different 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

Re: Fish 3.4.0

#40

Earlier quoted context omitted.

My company has default shell as zsh so every tool assumes that. How can I switch to fish in such an environment?

You can execute zsh scripts from a fish command line, or any other. Where is the problem?

Fish doesn't source /etc/profile{,.d}, so it won't pickup additional PATHs and other env vars that packages set there, for example.

A workaround is launching it from .bashrc/.zshrc or terminal. https://wiki.archlinux.org/title/Fish#Setting_fish_as_intera...

Post reply on HN