Live data from Hacker News

Speeding up my ZSH shell

scottspence.com

51–60 of 133 posts

Re: Speeding up my ZSH shell

#51
Fish is the way to go! Used to be a fan of ZSH but also struggled with performance issues. No performance issue with Fish! Only issue might be plugins / some copy/paste bash stuff, but it's so worth the performance.

Re: Speeding up my ZSH shell

#52

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…

Out of curiosity, what is wrong with oh-my-zsh?

I use it and never had any issue. Am I missing out on something?

Re: Speeding up my ZSH shell

#53

Earlier quoted context omitted.

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

The incompatible syntax of fish makes it a no go for me.

As an SRE, at my day job I often need to copy/paste commands that are generated from a playbook.

Our playbooks use Bash, and in practice Zsh is compatible. But a co-worker using fish often has to manually modify commands before running, and I'm not about that life.

The problem with fish is mostly the different syntax for setting variables and lack of heredocs. Sometimes the string substitution differences come up too.

Re: Speeding up my ZSH shell

#54

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…

Out of curiosity, what is wrong with oh-my-zsh? I use it and never had any issue. Am I missing out on something?

If it works for you, that's great. But people are installing oh-my-zsh almost as if it's an official requirement of zsh, run into bloat and performance issues, and goes off telling everybody not to use zsh.

Some of the autocompletion settings set by oh-my-zsh are useful. But apart from that, the majority of the code consists of gazillions of random aliases and functions that someone else needed. It pollutes the command namespace for no good reason except maybe making users more wary of typos. The last time I checked, sudo was aliased as "please", and I can't find a single reason why that'd be useful.

oh-my-zsh also introduces a lot of churn, which is why it has autoupdates. Autoupdates. The only time I needed to change my configuration in vanilla zsh because of a change in zsh was once or maybe twice over a span of 10+ years.

Re: Speeding up my ZSH shell

#55
The instant I saw the title I knew the post would be “I turned off oh-my-zsh” or “I tweaked oh-my-zsh.”

Yes zsh has a bunch of settings and dense documentation, and it can be hard to understand. The problem with something like oh-my-zsh is that now you have two things you don’t understand, and worse, when something doesn’t work you don’t know which one isn’t working or where to look.

Re: Speeding up my ZSH shell

#56

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!

I don't know if it's still in vogue, but prezto exists.

Re: Speeding up my ZSH shell

#58
post #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.

I still script in bash and I still know bash. It’s just not that big an ordeal to code-switch between the two.

Re: Speeding up my ZSH shell

#59

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…

What on earth are you talking about? zsh isn't bloated by any stretch, nor is it any slower than bash in any meaningful way. Chances are, like in the article, you installed oh-my-zsh, a third party configuration framework.

[deleted]

Re: Speeding up my ZSH shell

#60
post #4

https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#...

Sadly it's essentially discontinued

No. The author simply sees it as basically complete and decided to spend the time he has fixing bugs instead of taking care of issues.
Post reply on HN