Live data from Hacker News

Fish Shell 3.2

github.com

41–50 of 133 posts

Re: Fish Shell 3.2

#41
I used to really use fish pervasively in my computer, but after a while I realized that I forgot literally all of bash (like I forgot how for-loops look like, how word split works…) and I just switched back to macOS default zsh.

I’m still wanting a fish-alike interative shell that improves on the Bourne shell language (and bash extensions). I’m having hopes on Oil shell [0], but it’s still in an early stage so I guess I’ll have to wait for a far future…

[0]: https://oilshell.org

Re: Fish Shell 3.2

#42
> Significant performance improvements to completion of the available commands (#7153), especially on macOS Big Sur where there was a significant regression (#7365, #7511).

This is buried down in the Completion section but this is a big deal if you’ve upgraded to MacOS Big Sur: completing a command could hang the shell for 10-15 seconds making it nearly unusable. Thanks for fixing this!

Re: Fish Shell 3.2

#43
post #36

Folks make a big deal about everything Fish gives you out of the box, but for someone who already has Zsh well–configured (eg. syntax highlighting, autosuggestions, fzf), can someone sell me on things I might be missing out on from Fish?

Assuming zsh is already doing everything you want the biggest thing you're missing is speed.

"Speed" seems a vague claim. What are you referring to? Startup time, interactive use, scripting?

Re: Fish Shell 3.2

#44
post #19

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

If you mean for script portability: you can still easily call scripts with bash directly. For scripts that modify the environment, use bass. If you mean that you still have to use bash on other machines: yeah, I feel you there. At least for me, I'm fortunate that if I end up using a machine frequently, I can just install fish and add my config/dot files.

I used to have Vim with dozens of plugins installed, nowadays I consciously use Vim without relying on any plugin and try learning to do the same with only the basic movement commands, so I can be productive no matter what machine I'm using/logged into today - otherwise they'll be forgotten (hackers used to survive in the original vi without visual mode or multiple undo, I think surviving a pluginless Vim shouldn't be difficult). Some for the shell.

Re: Fish Shell 3.2

#45

I see a lot of enthusiasm for fish. Can someone point me to some resources that I can check? Not the best comparison but: vim has vimtutor, a couple of good vim games and so on. Is there anything for fish?

Honestly, fish is really simple. Just fire it up! You definitely don't need a vimtutor equivalent, you probably won't customize anything beyond the prompt, and the syntax weirdness is pretty intuitive, but you can always use `help function` or whatever to get docs.

Here's the docs if you do want to read about it first: https://fishshell.com/docs/current/

Re: Fish Shell 3.2

#46

I'd like to use fish regularly, but I feel really attacked by the over-the-top usage of color and unrequested auto-completion. Even a "monochrome" theme I tried was shoveling many different shades of gray into my terminal. It does not seem to honor the NO_COLOR variable either. Is there any way to obtain a default configuration with everything disabled?

It's a good point, but how many of the features are useful without any colors at all? At least the auto-completion would just look like any typed text. Perhaps fish is not for you?

I think it’s a fair ask - imagine using fish on a monochrome screen, for example. I could imagine using underlines or inverse text frontage autocomplete in such a theme/mode. Let’s see if someone here already knows such a theme, or gets inspired to make one. ;-)

Re: Fish Shell 3.2

#47
post #34
post #15

Earlier quoted context omitted.

set -e is not great and is not recommended. http://mywiki.wooledge.org/BashFAQ/105

-e is in the class of things that can be fine to use, but the people least-likely to be prepared to know when it can be are the most likely to expect it to behave better than it does. Sort of a combination finger-trap/cigar cutter for newbies.

Yeah.. but still useful despite the "false positives" that the link states which are addressable with proper error handling.

Re: Fish Shell 3.2

#48
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…

Off topic: I came back to Python after a few years and WOW the LSP is fast and helpful. Maybe that's always been the case but after Typescript forced me to turn my vim into an IDE, Python really outshines it on the tooling.

Edit: the point is that I should try fish too. Great user friendly tooling isn't just for beginners.

Re: Fish Shell 3.2

#49

I see a lot of enthusiasm for fish. Can someone point me to some resources that I can check? Not the best comparison but: vim has vimtutor, a couple of good vim games and so on. Is there anything for fish?

Someone already mentioned the official docs. They’re good.

I also enjoyed https://jvns.ca/blog/2017/04/23/the-fish-shell-is-awesome/ which is a nice read though not a tutorial.

Re: Fish Shell 3.2

#50
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.
Post reply on HN