Live data from Hacker News

Oh My Zsh adds bloat

rushter.com

251–260 of 304 posts

Re: Oh My Zsh adds bloat

#251
post #31

Well yeah, you need antibody https://getantibody.github.io/ and then whatever plugins you desire. Been using it for years and it's never been anything other than fast and reliable.

github says in maintenance since 2022 and that users should move to next great thing, antidote

Oh shit you're right it is actually antidote, God why do they have to name them the same things. Even their websites are similar.

Re: Oh My Zsh adds bloat

#252
post #31

Well yeah, you need antibody https://getantibody.github.io/ and then whatever plugins you desire. Been using it for years and it's never been anything other than fast and reliable.

Why antibody and not any of the 60 alternatives? Is it truly the best among them or is your choice sub-optimal? Thinking about that I realized I prefer not to use any plugin manager at all.

I mean it's not like I've done any formal benchmarks but like I've used a bunch of plug-in managers and antidote, sorry antibody is the old one, it's just so much faster than all the others.

Re: Oh My Zsh adds bloat

#253
huh, is this a problem people really have? I just have a plugin that lets me type before zsh loads and I don't really have a problem with this, even before that i didn't really notice a problem since my 'default' configuration is .12s.

   time zsh -i -c exit
  zsh -i -c exit  0.12s user 0.09s system 81% cpu 0.276 total
  ~

Re: Oh My Zsh adds bloat

#254
post #184
post #4

I use oh my zsh for exactly one reason: I can get a good shell experience out of the box and immediately start working on stuff productively, whether it's a new machine, a new remote host or a container. I could spend hours figuring out all those things, bit I'd rather use that time for something more important.

Hmm, weren't dotfiles invented just for that reason? I'm joking but on a more serious note, installing a shell as a default shell seems more complicated than copying over your .bashrc

    more complicated than copying over your .bashrc
In case you weren't aware, MacOS uses zsh as the default installed shell. The bash version that comes with MacOS is some ancient 3.x version, from 2005.

Re: Oh My Zsh adds bloat

#256
post #4

I use oh my zsh for exactly one reason: I can get a good shell experience out of the box and immediately start working on stuff productively, whether it's a new machine, a new remote host or a container. I could spend hours figuring out all those things, bit I'd rather use that time for something more important.

just install fish then

Re: Oh My Zsh adds bloat

#257
post #25

Like many other people, I use oh-my-zsh for default setup and that's it. I literally use a single plugin for git and very actively autoload my custom functions to avoid startup delay. With my 384 line config and oh-my-zsh on, here are the results: $ hyperfine -N "zsh -lc 'exit 0'" "zsh -c 'exit 0'" Benchmark 1: zsh -lc 'exit 0' Time (mean ± σ): 54.5 ms ± 6.3 ms [User: 10.2 ms, System: 14.3 ms] Range (min … max): 38.1…

I think `zsh -l` start a login shell, which does not load zshrc so oh-my-zsh don't get initialized. Try `zsh -ic exit` and it should load zshrc before executing exit. That said, the time of `zsh -ic exit` isn't really meaningful metric for measuring the performance of an interactive shell. See https://github.com/romkatv/zsh-bench#how-not-to-benchmark for details.

Valid points, I learned something new today. Thanks, you were right. If using -ic flags I am getting around 300 ms... Interesting how I never noticed, guess I don't open many terminal during the day

Re: Oh My Zsh adds bloat

#258
post #4

I use oh my zsh for exactly one reason: I can get a good shell experience out of the box and immediately start working on stuff productively, whether it's a new machine, a new remote host or a container. I could spend hours figuring out all those things, bit I'd rather use that time for something more important.

Try https://starship.rs then. Starship gives you the same "drop in and go" experience but without the 200ms+ prompt lag. One curl -> one line in your rc file, works on zsh/bash/fish/whatever. Configuration is straightforward and easy imo: https://starship.rs/config/ Give it a spin, I think you won't regret it.

I'll second this. I've had a really pleasant experience using Starship across development environments.

Re: Oh My Zsh adds bloat

#259

Exactly why I switched to fish. Fish doesn't come preconfigured exactly how I would like, but it's close enough that I just grew accustomed to fish defaults and have no trouble with it now, and no longer give any thought to shell configuration.

Really curious what is missing from the default configuration in your setup.

If I'm feeling really fancy I may enable vim bindings and add the fuzzy find plugin, but plain fish is so good on its own.

Re: Oh My Zsh adds bloat

#260

Exactly why I switched to fish. Fish doesn't come preconfigured exactly how I would like, but it's close enough that I just grew accustomed to fish defaults and have no trouble with it now, and no longer give any thought to shell configuration.

Totally agree. Fish out of the box is super performant, lots of tools ship completions for it, and the UX is just great. Only recommendation for people new to fish is to read the keybinds thoroughly. I convinced an eng on my team to switch but he was using it like sh: not using tab complete, shift+arrows for partial complete, etc. Slowed him down a ton.
Post reply on HN