Live data from Hacker News

Speeding up my ZSH shell

scottspence.com

31–40 of 133 posts

Re: Speeding up my ZSH shell

#33

Oh-my-zsh is very bloated. You might not need it, since its most used features can be implemented with zsh directly: https://ianyepan.github.io/posts/moving-away-from-ohmyzsh/

OMZ should be classified under "supply chain attack as a service". I can't believe anyone uses it.

Re: Speeding up my ZSH shell

#34

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.

Re: Speeding up my ZSH shell

#35
post #26
post #10

Earlier quoted context omitted.

I think you're better off switching to https://starship.rs I did try to do my whole zsh config/theme from scratch, but it did take some time and lot of small features here and there were no worth the effort (like python version, vevn, and such) so I just switched to starship which is very fast and easy to use

Why not just use fish at that point? It's been rewritten in Rust too. To me personally, oh-my-zsh and similar projects feel like a worse version of the stuff fish brings by default.

Fish is awesome, but there are times you need POSIX/ bash-like shell syntax

Re: Speeding up my ZSH shell

#36
post #35
post #26

Earlier quoted context omitted.

Why not just use fish at that point? It's been rewritten in Rust too. To me personally, oh-my-zsh and similar projects feel like a worse version of the stuff fish brings by default.

Fish is awesome, but there are times you need POSIX/ bash-like shell syntax

Then you open bash and get POSIX and not bash-like, but bash.

Re: Speeding up my ZSH shell

#38
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 to these frameworks.

Re: Speeding up my ZSH shell

#39
Did something similar recently as well. I did not notice any need for plugins from day one of switching. Fzf can replace a lot of plugins if you know how to use it.

Things like git branch name and virtual envs are handled by starship.

My custom config is less than 10 lines now:

  export HISTSIZE=1000000000
  export SAVEHIST=$HISTSIZE
  setopt EXTENDED_HISTORY
  setopt autocd
  autoload -U compinit; compinit
  source 
Post reply on HN