Live data from Hacker News

Fish Shell 3.2

github.com

61–70 of 133 posts

Re: Fish Shell 3.2

#61
post #3

I'm surprised that Fish isn't used more for education. I don't know of any distros aimed at new users which have fish as the default. I don't think I've seen any tutorials that use fish to teach shell concepts. It seems like such a missed opportunity, especially at a time when Linux Gaming is on the rise. There's a whole audience that would have the activation energy of getting into shell scripting lowered by being s…

> I feel like fish is the python of shells

There is actually python for shell. Check out https://xon.sh

Re: Fish Shell 3.2

#62

I used fish for a couple years but switched back to zsh. I found the incompatibilities with bash/zsh to be annoying at times and finally just decided to do the "When in Rome do as the Romans" do thing and adopt zsh.

Same here. If you miss fish's smart auto-completion I can recommend this zsh plugin though: https://github.com/zsh-users/zsh-autosuggestions

Sadly, this plugin is a pale copy of fish's power - it isn't folder-aware (fish will offer different suggestions for different folders) and it isn't context aware (fish will try to autocomplete the current line based on the context of the current folder, zsh-autosuggestion will just blindly offer history line that starts with what's typed)

Re: Fish Shell 3.2

#63
post #3

I'm surprised that Fish isn't used more for education. I don't know of any distros aimed at new users which have fish as the default. I don't think I've seen any tutorials that use fish to teach shell concepts. It seems like such a missed opportunity, especially at a time when Linux Gaming is on the rise. There's a whole audience that would have the activation energy of getting into shell scripting lowered by being s…

> I feel like fish is the python of shells There is actually python for shell. Check out https://xon.sh

And Marcel the Shell ⌘ https://www.marceltheshell.org/

Re: Fish Shell 3.2

#64

Earlier quoted context omitted.

> If anyone is reading this and is using vi mode with bash or zsh, give fish a try, it's so much better! Great to hear that. I am using vi key bindings wherever it's possible, for example, text editing, Firefox(vimium) and file manager(ranger). But I have never been able to figure out how to use vi mode effectively in the shell prompt. The last time since I tried vi mode in shell was at least 5 years ago. I could rou…

I’m a die-hard vim user and a fish developer but (gasp!) I don’t use vi mode in fish or any other shell. Alt-V will open $EDITOR with the command line contents preloaded into the buffer and update the prompt on exit, I find that to be good enough without the frustration of trying to convert the prompt into a text editor when it’s not.

This alone might convince me to start using fish again. Thanks for the tip!

Re: Fish Shell 3.2

#65
post #8

Fish is my shell of choice for a couple years now. Not because it's the perfect shell, but because it's a lot better than any other for interactive shells. For scripting I still stick to bash because it's more portable and I already know how to cope with its warts. And sometimes when I can't remember the fish syntax by heart, I just launch a bash from inside fish to run my command and then Ctrl-D :-)

I'd just like to add that if you're considering the switch but are worried about compatibility with bash, things have gotten better. I wouldn't call it outright compatible, but the most problematic differences in syntax (e.g. the absence of &&) went away a few years ago.

If it didn't quite stick the first time, I think it's worth trying again.

Re: Fish Shell 3.2

#66

Fish is my shell of choice, like many in this thread. To me it just works, without configuring anything (ok, maybe a couple of aliases), with great defaults. As an example, type anything(for instance, '.conf') + up arrow, and there you see all the completions (for instance, 'less /etc/postgresql/10/main/pg_hba.conf' shows for me) based on the shell history. You can then cycle through them with up/down arrows. It is t…

>without configuring anything

and if you want to configure stuff it actually also has a neat ui built in with fish_config

Re: Fish Shell 3.2

#68

I always see these posts, get tempted to use fish instead of bash but then I ask the ubiquity question and end up saying "Not today..."

This hasn't happened to me. I guess I've never used my prompt as a programming environment, so switching from zsh to fish hasn't impacted by ability to write posix shell script anymore than it as impacted my ability to write ruby or javascript.

I use fish strictly as a command line and it is fantastic.

Re: Fish Shell 3.2

#69
post #33

what's the difference between this and zsh? both seem to have the same set of features. also zsh is the default shell for macOS (as of Catalina)

Fish has many more features out of box. To match fish with zsh you need to install many zsh plugins. Because the features are native to fish they are much faster in fish than zsh.

Fish has a great help system and error messages.

Fish is also a much cleaner programming language because it doesn't need to carry the historical quirks of bash, zsh, and posix. That said I wouldn't recommend using it as a programming language.

Re: Fish Shell 3.2

#70
Love fish, but I always add the Bob the Fish theme which adds a really nice Powerline command line theme which effectively shows me current git status with just enough info to be useful much of the time.
Post reply on HN