Live data from Hacker News

Oh My Zsh adds bloat

rushter.com

181–190 of 304 posts

Re: Oh My Zsh adds bloat

#182

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.

Just out of curiosity, what sort of typing do those plugins save in comparison to doing it in bash? Can you give some examples?

Re: Oh My Zsh adds bloat

#183
post #65

Earlier quoted context omitted.

I'm using fzf and it's amazing. What does atuin bring additionally? Looks very similar

I use atuin for the shell history as it seems to know when I've run a command in one tab/split while another is open where fzf doesn't seem to sync it all the time. But I still use fzf to find files. (Bonus, I use Zoxide to replace the alt+d cd shortcut as it's much faster, and use https://github.com/Aloxaf/fzf-tab for tab completions in the terminal to become fuzzy, very very useful)

>it seems to know when I've run a command in one tab/split while another is open where fzf doesn't seem to sync it all the time.

On my machine this is handled in zsh, not fzf (but then fzf still benefits). You can configure your shells to sync without exiting. You may need to run one command (or just hit enter with nothing typed, maybe) for the shell history to catch up, but then it should all be there. Relevant options:

# share history among terminals

setopt share_history

# append to the history instead of overwriting

setopt append_history

# append to history incrementally instead of when the shell exits

setopt inc_append_history

I think finding out about this is why I originally switched from bash to zsh several years ago.

Re: Oh My Zsh adds bloat

#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

Re: Oh My Zsh adds bloat

#185

I agree. And you probably neither need Omarchy, CachyOS, etc. Choose boring and get peace of mind.

CachyOS is basically arch on easy mode. I used to spend countless hours tinkering with arch but then I got older and don’t have much time. Plus there are helpful meta packages for gaming that work great out of the box, which for a gamer like me sans Windows is pretty awesome.

>I used to spend countless hours tinkering with arch but then I got older and don’t have much time.

Have your lost your old configs that you worked hard on? That's a shame if so. I love moving my configs I've worked hard on to new machines and instantly getting up and running in a now-familiar environment. It saves so much time and effort.

Re: Oh My Zsh adds bloat

#186

Earlier quoted context omitted.

That misses the point. I don’t even want to think about any of that stuff. It’s a single command to install oh-my-zsh. I can fire it off, check Slack, and come back in 5 minutes. If I have to take 5 minutes to setup it up, I’m just not going to do it.

[flagged]

Time is finite.

I could spend that time tinkering with the internals of an ad-hoc informal system cobbled together in the 1970s and held together by spit and glue.

Or I could just not do that.

Also, the implication that fiddling with shell scripts is somehow a better engineering/programming practice than web programming is laughable at best.

Re: Oh My Zsh adds bloat

#187
> OMZ adds bloat

They all do... if you want the niceties of not having to write your own shell config, what would you expect?

It's funny how many people pick up OMZ or doom emacs because some YouTuber told them to do it, then drop them in 6 months because they're all bloaty.

Re: Oh My Zsh adds bloat

#188
This is not an issue for me due to my workflow.

I have a script for each of my projects that I run when I open a new terminal window (Alacritty). The scripts set up tmux with 3-8 terminals, each terminal launches a components, utility or just sits in a folder from which I later run commands.

Having said that, I use only a few zsh plugins, and have a theme configured to not run commands that add extra latency.

Re: Oh My Zsh adds bloat

#189
I concur. I tried oh my zsh and for a while I thought I was doing something wrong. My experience was terrible. But it turns out that many people did not mind the bloat and the prompt lag. It was not for me. I uninstalled it and I have such a bad taste in my mouth that I am very reluctant to try any of the alternatives.

Re: Oh My Zsh adds bloat

#190

Earlier quoted context omitted.

or asdf

I'm using Asdf too. Have heard well about Mise, but I haven't figured out what the difference is, so I have stayed with Asdf

Mise started out using the same plugins as asdf, mostly focused on adding performance and usability improvements. Over time it added more features and security.

Most tools are now directly fetched from github releases without the need for random shell scripts (which is what asdf plugins are).

It also grew to be a task runner and environment manager. At first you might think this is scope creep but they're both opt in and very elegant additions. I don't want to ramble but let's just say they've solved real problems I've had.

I'm a fan of it, and I can't think of a reason why I would use asdf over mise. Its real competition is nix (+devbox/devenv/flox), devcontainers, and pixi.

Post reply on HN