Live data from Hacker News

Fish 3.4.0

fishshell.com

41–50 of 93 posts

Re: Fish 3.4.0

#41
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'…

I’m a long term bash user, I tried fish and just couldn’t get used to it (death by 1000 cuts is a great way to put it.) I’ve recently settled on zsh but I still prefer bash’s basic history (e.g. just pressing up without typing any command)

Re: Fish 3.4.0

#42
I feel productive with my Alacritty + Fish (with a starship.rs prompt) setup. I can even swap the shell, and I get the same user experience.

It's consistent and blazing fast, and that's all I ask.

Re: Fish 3.4.0

#44

Earlier quoted context omitted.

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.

I've been using Fish for years and spend my entire day working with Python. Python's virtualenv has an `activate.fish` command, I've never had any problems with it. Additionally, we have a ton of internal tooling built in a fabfile, so I've written a couple of snippets of fish that automatically activate that .venv (Poetry managed) whenever I cd into a directory that has one, and also expands a bunch of env vars into the shell session. I've also got this feature request in on the virtualenv repo in the hope that one day we can have activate.fish emit an event - https://github.com/pypa/virtualenv/issues/1456

Re: Fish 3.4.0

#45
I've just taken Fish for a test drive and I'm really impressed. I use the Starship prompt in Zsh and it worked out of the box in Fish. It appears direnv will too (which I rely on).

The one thing I can't work out is how to change the cursor to a block, it's a line. No vi-mode or anything, just a nice rectangle. I tried `set fish_cursor_default block` to no avail.

Re: Fish 3.4.0

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

In VSCode you can have a notebook with shell functionality, there copilot works.

Re: Fish 3.4.0

#47
post #40

Earlier quoted context omitted.

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

Here’s some solutions, I’ve written a few scripts for projects to pass aws okta tokens. Absolutely worth it to use fish IME. YMMV depending on complexity https://superuser.com/questions/446925/re-use-profile-for-fi...

Re: Fish 3.4.0

#48

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.

Very easy especially with omf, has a web interface for terminal schemes. I think you’ll be right at home.

Re: Fish 3.4.0

#49
I used OhMyZsh for years with the Agnoster power line theme and over the years it got slower and slower. Tried Fish about 6 years ago and immediately spent the rest of the day tweaking an Agnoster theme to my liking because everything about it was better than Zsh and waaaay faster. My fork is here [0] for anyone interested, though the readme and screenshots are from the original.

[0] https://github.com/drcongo/agnoster

Re: Fish 3.4.0

#50

Earlier quoted context omitted.

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

If anyone is interested in comparing and contrasting, the Standard Ebooks tooling has the same completions for:

Bash: https://github.com/standardebooks/tools/blob/master/se/compl...

ZSH: https://github.com/standardebooks/tools/blob/master/se/compl...

Fish: https://github.com/standardebooks/tools/blob/master/se/compl...

Post reply on HN