Live data from Hacker News

Speeding up my ZSH shell

scottspence.com

41–50 of 133 posts

Re: Speeding up my ZSH shell

#41
post #14

Fish shell with starship. You will never look back.

Fish is nice, but syntax difference is a no-go for me. I frequently log into different servers that usually use bash.

I miss simple things like alias when I temporary want to assign long commands to a shorter alias.

Re: Speeding up my ZSH shell

#42
post #27

Earlier quoted context omitted.

>it seems like ZSH tries to update on every shell spawn Learn your tools first, not bloated frameworks. There's a gulf of difference between vanilla zsh and this: >Community-driven (with 2,400+ contributors) framework for managing your zsh configuration >Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc) >140+ themes to spice up your morning, and an auto-update tool that…

Sorry, I meant oh-my-zsh. I know that the core shell doesn't update. I still think it's bad. You shouldn't rely on a million different package managers, just 1 is enough. (2 if you are feeling spicy: Flatpak)

That's what ZSH has turned into. Every new user installs OMZ because that's what the Internet tells them to do. Then their shell config turns into a huge mess.

So half the users are using OMZ with a bloated slow config and the other half are reinventing new config managers every year because of how terrible OMZ has become. And constantly churning through them as they keep getting abandoned.

I've been happily using zsh4humans for years but will need to find a replacement at some point as it's now going unmaintained too.

Re: Speeding up my ZSH shell

#45

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

I don't want to spend ages figuring out which knobs to turn to get a half decent shell. If there's an alternative to oh-my-zsh that looks halfway decent, has that nice fzf integrated, and the 'ghost text' history suggestions, then I welcome it!

Re: Speeding up my ZSH shell

#46

As a long time Linux + bash user I switched to zsh three months ago when I was forced to use a Mac at a new job. In every previous job I was able to insist on Linux, but this one is very corporate. I decided not to fight it, except to install AltTab, Karabiner, Rectangle and a script that detects which screen my mouse is on so I can alt-tab through ALL the stuff on that screen (sane XFCE / KDE behaviour). I can't get…

Pure zsh is alright, it's pretty much just bash with fantastic autocomplete that usually provides short form documentation right there along with the options. So no need to remember (or look up) what -X -d -f stands for. Get rid of oh-my-zsh and give the proper shell another chance.

Re: Speeding up my ZSH shell

#47

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

I don't want to spend ages figuring out which knobs to turn to get a half decent shell. If there's an alternative to oh-my-zsh that looks halfway decent, has that nice fzf integrated, and the 'ghost text' history suggestions, then I welcome it!

You should try fish shell. Great user experience out of the box, including history suggestions.

https://fishshell.com

Re: Speeding up my ZSH shell

#49

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

I don't want to spend ages figuring out which knobs to turn to get a half decent shell. If there's an alternative to oh-my-zsh that looks halfway decent, has that nice fzf integrated, and the 'ghost text' history suggestions, then I welcome it!

Once you have everything figured out, you just keep using the config you have. It might be worth the investment. I stopped using oh-my-zsh when I realized it was what was causing multi-second delays on Raspberry Pis.

I think auto suggestions and syntax highlighting plugins can be installed separately from oh-my-zsh.

I use starship for a better prompt, and it works on more shells than just Zsh.

I also have Atuin installed to share history across machines, and as a benefit the history search is a lot more powerful.

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

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

https://starship.rs

https://atuin.sh

Re: Speeding up my ZSH shell

#50

With articles like these popping up all the time, oh-my-zsh is seriously harming zsh's reputation. It's giving the wrong impression of zsh being slow and bloated. zsh doesn't need configuration frameworks or plugins. All it needs is a change in the default settings so that its powerful completion works out the box. It currently needs more than ideal amount of tweaks to the defaults, which is probably why people flock…

I don't want to spend ages figuring out which knobs to turn to get a half decent shell. If there's an alternative to oh-my-zsh that looks halfway decent, has that nice fzf integrated, and the 'ghost text' history suggestions, then I welcome it!

If zsh has its completion fully configured by default, there will be no need for most people to turn knobs nor will it be a "half decent shell." It'll be the best shell, if it isn't already.

I wonder why ghost text history suggestions are popular though, I'd rather not have it. Shell history search works better, and I don't want my shell always showing me or whoever else is looking at the screen random commands that I've previously typed.

Post reply on HN