Live data from Hacker News

The fish shell is amazing

rmpr.xyz

171–180 of 302 posts

Re: The fish shell is amazing

#171
post #147

Earlier quoted context omitted.

The best reason to choose fish over zsh is that everything works so well out of the box that you stop messing with it. I haven’t tweaked my shell config in 7 or 8 months now. This is a different mindset from the giant zsh configs, “plugin managers” and other junk that is wholly irrelevant to using the shell. You’d think that fish incorporating a lot of functionality that zsh has would manifest as bloating fish, but,…

Another issue with zsh plugins is that they are incredibly slow. Oh-my-zsh makes every terminal feel like it’s running on another machine over ssh

I thought there was something in, like, Powerman10k or something, which managed to avoid that issue?

Re: The fish shell is amazing

#172
I like software where you don't need to spend hours or even days on configuration and it just works out of box. Unfortunately the different syntax is no go for me. I have a bunch of scripts which I can run on my local machine and remote interchangeably. Even if syntax is better I want to learn rather `one syntax` that work everywhere. But that is only one thing that prevents me from trying it.

Re: The fish shell is amazing

#173

I like software where you don't need to spend hours or even days on configuration and it just works out of box. Unfortunately the different syntax is no go for me. I have a bunch of scripts which I can run on my local machine and remote interchangeably. Even if syntax is better I want to learn rather `one syntax` that work everywhere. But that is only one thing that prevents me from trying it.

Just add #!/usr/bin/env bash?

Re: The fish shell is amazing

#174
post #147

Earlier quoted context omitted.

The best reason to choose fish over zsh is that everything works so well out of the box that you stop messing with it. I haven’t tweaked my shell config in 7 or 8 months now. This is a different mindset from the giant zsh configs, “plugin managers” and other junk that is wholly irrelevant to using the shell. You’d think that fish incorporating a lot of functionality that zsh has would manifest as bloating fish, but,…

Another issue with zsh plugins is that they are incredibly slow. Oh-my-zsh makes every terminal feel like it’s running on another machine over ssh

This is the framework, not the plugins.

Re: The fish shell is amazing

#175
Can anyone explain why getting similar functionality in zsh is such a PITA? Every time I've tried to get smart-autocomplete history stuff working in it I've given up. Is it because the community is much more fragmented?

Re: The fish shell is amazing

#176
post #62

> Smart tab completion not only for the commands but for the arguments as well, and it apparently does that by parsing man pages. And it does this every time you spawn a shell. So if you have set your login shell to fish, then every time you launch a shell it loads all the fish plugins like this one, and that slows it down. And you can’t turn it off, or couldn’t the last time I checked around a year ago. Insult to in…

do you have fish_update_completions somewhere that runs when you start a shell? maybe ~/.config/fish/config.fish?

Re: The fish shell is amazing

#177

I like software where you don't need to spend hours or even days on configuration and it just works out of box. Unfortunately the different syntax is no go for me. I have a bunch of scripts which I can run on my local machine and remote interchangeably. Even if syntax is better I want to learn rather `one syntax` that work everywhere. But that is only one thing that prevents me from trying it.

Agreed. Wish there was a pretty shell like fish that used /bin/sh under the hood.

Re: The fish shell is amazing

#178
post #147

Earlier quoted context omitted.

Another issue with zsh plugins is that they are incredibly slow. Oh-my-zsh makes every terminal feel like it’s running on another machine over ssh

I thought there was something in, like, Powerman10k or something, which managed to avoid that issue?

You probably mean powerlevel10k[0], although that's mostly a replacement of powerlevel9k, which is only one of the (theming) plugins that oh-my-zsh commonly handles.

As for a replacement for oh-my-zsh itself, I had good experiences with zgen[1] but the fastest I've found is zim-fw[2] which produces acceptable start times for me[3].

[0] https://github.com/romkatv/powerlevel10k/

[1] https://github.com/tarjoilija/zgen

[2] https://github.com/zimfw/zimfw/

[3] https://i.imgur.com/mPPQuyh.png

Re: The fish shell is amazing

#179

I like software where you don't need to spend hours or even days on configuration and it just works out of box. Unfortunately the different syntax is no go for me. I have a bunch of scripts which I can run on my local machine and remote interchangeably. Even if syntax is better I want to learn rather `one syntax` that work everywhere. But that is only one thing that prevents me from trying it.

Maybe it’s a personal quirk but all of my shell scripts have a shebang (#!) header anyway.

I’ve used fish as my shell for years and still have so far never written any shell scripts in fish. It may also be a nice scripting language, but I personally use it because it’s a fantastic interactive shell.

Re: The fish shell is amazing

#180

I like software where you don't need to spend hours or even days on configuration and it just works out of box. Unfortunately the different syntax is no go for me. I have a bunch of scripts which I can run on my local machine and remote interchangeably. Even if syntax is better I want to learn rather `one syntax` that work everywhere. But that is only one thing that prevents me from trying it.

Just invoke your scripts with sh or bash
Post reply on HN