Live data from Hacker News

Oh My Zsh adds bloat

rushter.com

41–50 of 304 posts

Re: Oh My Zsh adds bloat

#41

zsh is still crazy to me. I use bash for everything. I have no idea what I’m missing out on.

I've been using it for the last 6 or 7 years and I can only remember one specific feature I use a lot: "unset HISTFILE" to disable history when I need to run commands with passwords.

Other than that, oh-my-zsh with git, systemd, and fzf plugins. Saves a lot of typing.

The main selling point for me is how easy it is to setup.

Re: Oh My Zsh adds bloat

#42
> My workflows involve opening and closing up to hundreds of terminal or tmux tabs a day. I do everything from the terminal. Just imagine that opening a new tab in a text editor would take half a second every time.

This sounds like overoptimization on a neglible time loss for what is essentially an unique (and dare I say: broken?) workflow.

I use terminals a lot ... but I work with 4-5 day-persistent terminals that I open once a day and keep in the background. The QoL effects of omz outweigh microtuning startup times significantly.

Re: Oh My Zsh adds bloat

#43
post #20

Earlier quoted context omitted.

> I could spend hours figuring out all those things, This post is explaining how to set up those things. Less than five minutes to read.

> Less than five minutes to read. OMZ is still easier to set up consistently. That’s why we use it. If the concern is the bloat of OMZ then make FMZ - fast my zsh - that is just as quick to set up and doesn’t add “bloat”?

I won't spoil the article, but if you read to the end you'll find out what this "FMZ" project is called.

Re: Oh My Zsh adds bloat

#45
post #30
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…

Trying doing the benchmark in a git repo.

That's where I actually did it, by coincidence

Re: Oh My Zsh adds bloat

#46
At some point you need to remove the training wheels, otherwise you'll never learn to ride the bike.

At first, you need them. You'll fall without it. But if you still rely on them after a while, it's not a good sign.

Re: Oh My Zsh adds bloat

#48
For command search I've replaced regular search and fzf with atuin. Works especially well with multiple hosts.. https://atuin.sh/

EDIT: The OP fails to mention zsh profiling: zprof. I discovered that atuin is my biggest waster at the moment with like 20ms and rest of the stuff I could clean up.

Re: Oh My Zsh adds bloat

#49

Earlier quoted context omitted.

Craziest thing: You can still script in bash/zsh even if you use fish but you can't always copy-paste from StackOverflow.

The problem is that I forgot (if I ever knew) bash. I can write fish, scripting or interactively on my shell without thinking too hard about the syntax, but when scripting in bash I require an example or using my snippets to be sure I'm not shooting myself on the foot or writing something that bash will reject right away.

The trick is to use "shellcheck" on your bash scripts, it's an overly anal linter that'll keep you sharp, and it's 2026, everyone can script bash with AI :)

But yeah the syntax with [[, if fi, while stmt; do; done, "$@", case esac, "${!VAR}" and others makes me long for the day fish shell gets "euo pipefail" mode so I can stop writing bash or || true :)

Post reply on HN