What does HackerNews think of zsh-autosuggestions?

Fish-like autosuggestions for zsh

Language: Shell

#8 in Shell
Am i the only one who feels fish is not worth it despite of hype? Don't get me wrong. I think that fish is really good shell.

BUT...

After adding the following plugins to zsh(before you chime in, it's just adding these lines,not anything configuring much. also it auto bootstraps on new install), I found out that fish is no where as good as configured zsh.

1) https://github.com/zdharma-continuum/zinit (plugin manager)

2) https://github.com/zdharma-continuum/fast-syntax-highlightin...

3) https://github.com/zdharma-continuum/history-search-multi-wo...

4) https://github.com/zsh-users/zsh-autosuggestions

5) https://github.com/zsh-users/zsh-completions

6) https://github.com/Aloxaf/fzf-tab

7) any good shell prompt generator like https://github.com/romkatv/powerlevel10k

For example, I use fzf integration for tab completion. Fish's fzf integration is nowhere as good as that of zsh's. Also, posix compat and almost bash compat of zsh is plus.

I acknowledge that zsh isn't perfect shell either and I have tried and failed few times in past to switch to fish. If you provide me compelling reason/s to switch to fish, I am all ears.

Same for me, later I switched back to zsh after I discovered this plugin:

https://github.com/zsh-users/zsh-autosuggestions

Best of both world really.

> FISH - mainly because of it's excellent auto-completion that displays as you type.

Said functionality for zsh:

* https://github.com/zsh-users/zsh-autosuggestions

+1 on oh-my-zsh

I recommend Oh My Zsh with the zsh-autosuggestions [1] and zsh-syntax-highlighting [2] plugins.

[1] https://github.com/zsh-users/zsh-autosuggestions

[2] https://github.com/zsh-users/zsh-syntax-highlighting

And my custom theme ;) https://github.com/whyboris/dotfiles/blob/main/yboris.zsh-th...

Is anyone else mostly rolling with the zsh (not oh-my-zsh) defaults?

After so many years of using Bash I switched to zsh almost a year ago. I use the vanilla zsh set up with 2 plugins:

- https://github.com/zdharma-continuum/fast-syntax-highlightin... for very good and fast syntax highlighting

- https://github.com/zsh-users/zsh-autosuggestions for auto-suggestions

I don't use a plugin manager, instead I put together a ~20 line shell script[0] which handles either cloning or pulling plugins, then you can load them in your zshrc[1].

I haven't found the need for anything else and my whole dev environment is based on using tmux, terminal Vim, etc.. Basically I spend a lot of time there in my day to day. I started with the idea of "less is more" and planned to add more things over time but the time to add new things hasn't come yet.

[0] https://github.com/nickjj/dotfiles/blob/0076e508403c9981e393...

[1] https://github.com/nickjj/dotfiles/blob/0076e508403c9981e393...

I’d look at zsh autosuggestions as a possible starting point. It’s based on your history and suggests previous commands based on what you type, but there’s no reason it couldn’t provide a suggestion “immediately”. https://github.com/zsh-users/zsh-autosuggestions
My only plugins are zsh-autosuggestion (https://github.com/zsh-users/zsh-autosuggestions) zsh-syntax-highlighting (https://github.com/zsh-users/zsh-syntax-highlighting) and zsh fzf-tab (https://github.com/Aloxaf/fzf-tab) its been wonderful using these plugins
I switched to fish for about six months, and recently went back to zsh when I realised that the three things I really liked about it (abbreviations, syntax highlighting and autosuggestions) were all doable in zsh with extensions [0]. (It feels pretty slow, even slower than say OMZ, but that's not such a big deal for me.)

[0] https://github.com/olets/zsh-abbr

https://github.com/zsh-users/zsh-syntax-highlighting

https://github.com/zsh-users/zsh-autosuggestions

> But zsh doesn't even use readline, which is bananas to me. Sure, provide an alternative but at least support readline.

Why? ZLE is what makes zsh compelling for users. It provides a high level of customizability into command line editing that is simply not possible with bash. It powers zsh's most touted completion feature as well as popular plugins such as zsh-syntax-highlighting[1] and zsh-autosuggestions[2]. Replacing it with readline would be a sure way to lose a majority of users in a blink of an eye.

[1]: https://github.com/zsh-users/zsh-syntax-highlighting

[2]: https://github.com/zsh-users/zsh-autosuggestions

I have been using zsh-autosuggestions [1] to achieve something similar, so seeing a new product that seems infinitely easier to configure and much more powerful is very.. heartening. I might not move over right this moment, but I'll be cheering you on.

PS: I read the fine print and I (and many others, I'm sure) would really, really like to pay some money for you to not send ANY telemetry data at all. Would be great if you kept this demographic in mind.

Congrats on the launch, and all the best!

[1]: https://github.com/zsh-users/zsh-autosuggestions

Same here. If you miss fish's smart auto-completion I can recommend this zsh plugin though:

https://github.com/zsh-users/zsh-autosuggestions

I use zsh with this plugin: https://github.com/zsh-users/zsh-autosuggestions

Best of both worlds, fish-like autocomplete combined with bash-compatibility :)

I switched from fish to zsh once I found this plugin:

https://github.com/zsh-users/zsh-autosuggestions

Now zsh feels just like fish, but with bash-compatible syntax (which was the main day-to-day problem I had with fish, otherwise it's fine, but except for the auto-suggestions I didn't really use any special fish features).

I think fish is great for newcomers or for those who don't really want to mess around with too many settings or plugins.

I'm a fish user, actually. That said, for those on zsh who want some of fish's most prominent user features without leaving, check out zsh-syntax-highlighting[1] and zsh-autosuggestions[2]. These are rather popular so long time users may not benefit from these suggestions.

[1] https://github.com/zsh-users/zsh-syntax-highlighting [2] https://github.com/zsh-users/zsh-autosuggestions

If anyone here is a zsh user and interested to use the same feature: https://github.com/zsh-users/zsh-autosuggestions It really was a game changer for me as well.
One of the biggest upgrades from using fish is syntax highlighting / autocompletion. You can get fish-style syntax highlighting and autocomplete in zsh (which has the advantage of being more interoperable with bash generally):

[zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting)

[zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)

Poster mentioned "modern alternatives exist" with good colorization options. Some of my favorite colorized feature-rich alternatives:

ls -> [exa](https://github.com/ogham/exa)

cat -> [bat](https://github.com/sharkdp/bat)

du -> [ncdu](https://dev.yorhel.nl/ncdu)

diff -> [delta](https://github.com/dandavison/delta)

In combination with all of the above, [fzf](https://github.com/junegunn/fzf) suddenly becomes a syntax-highlighter preview-pane via leveraging bat (or delta, as the case may be).