Live data from Hacker News

Fish 3.4.0

fishshell.com

21–30 of 93 posts

Re: Fish 3.4.0

#21

> fish’s command substitution syntax has been extended: $(cmd) now has the same meaning as (cmd) but it can be used inside double quotes That's pretty big news for a more POSIX-like behaviour!

They did it also because with the old syntax it was unintuitive how to put commands inside quotes. It borrowed the new syntax from bash but it wasn't ONLY to be more bash compatible. It solved a real fish shell problem also.

Re: Fish 3.4.0

#22

> fish’s command substitution syntax has been extended: $(cmd) now has the same meaning as (cmd) but it can be used inside double quotes That's pretty big news for a more POSIX-like behaviour!

Copy-pasting little snippets with `"$(command)"` in them has always been a bit of annoyance. Happy to see it improving!

Re: Fish 3.4.0

#24

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.

It's not difficult to customize. IMO, it's actually easier to customize yourself than bash/zsh because I find the fish syntax much more natural than bash, but YMMV.

That said, I believe that zsh has a bigger community, and therefore most likely a richer ecosystem with more plugins. For example, oh-my-zsh has 142k stars, and oh-my-fish has 8k stars.

However, even with the rich ecosystem of plugins, I wasn't able to get my zsh to be as pleasant to use as my fish, where I only have some self-made customizations (not even using oh-my-fish).

But if having lots of plugins to choose from is important to you, zsh may be a better choice.

Re: Fish 3.4.0

#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.

Re: Fish 3.4.0

#26
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?

Doesn’t sound like it would really be worth it. Zsh is at least better than bash.

Re: Fish 3.4.0

#27
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

I think POSIX compliance of interactive shells is completely irrelevant. POSIX shells are relevant when you're writing scripts that will be distributed, but there's no reason that needs to be done with the same shell you use interactively. I use fish presently and zsh before that for nearly 15 years, but my shell scripts have always started with #!/bin/sh It's not like fish installs to /bin/sh, nor are /bin/sh script…

Same here, totally don’t get the whole compatibility argument. If I need to script anything of any complexity I use a more proper programming language anyway such as Python, Ruby, Julia or maybe even Go as it makes distributing apps/scripts real easy.

Re: Fish 3.4.0

#28
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?

There should be no issue. Just execute scripts with zsh if it isn't compatible. Inside fish you could just do the following: $ zsh ./script.sh

Re: Fish 3.4.0

#29
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 that I often used Go.

Re: Fish 3.4.0

#30
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.

Yup, right here https://www.youtube.com/watch?v=j0UnS3jHhAA

I remember that I was able to replicate this last year, not 100% sure why I'm not using it daily tho. :D

One thing to note, the limited waitinglist he talks about in the video is done, and now you can sign up and "pay" for ~NLP~...ahem CLP tokens as OpenAI calls them

Post reply on HN