Hacker News new | ask | show | jobs
by d3w4s9 875 days ago
I do myself a favor by not doing this, install ohmyzsh and start working. Seeing what other people have done with shell, vim and all sorts of things, I know this is a rabbit hole and I could spend endless time on it. That's why I use ohmyzsh, VSCode and other tools and only tweak settings when necessary. And I can be actually productive even when I get a new machine.

Performance? If you are talking about the startup performance, no it doesn't bother me. Again, nothing is slowly enough to cause noticeable delays in basic typing/editing and the bottleneck is almost never on them. (I regularly work on codebase of hundreds to thousands of files or more.) So I don't spend time worrying about saving a few seconds in total per day when I can use my brain elsewhere.

2 comments

You don’t have to follow a rabbit hole, these tweaks take no time at all and you can stop whenever. I used Oh My Zsh until I got fed up with the startup slowness. I open a bunch of terminal windows during the day and every one of them had a second or two of delay before I could do anything. I decided to do myself a favour and no longer put up with it. It took me a handful of minutes to figure out which plugins I actually cared about (three) and get rid of Oh My Zsh entirely. Everything about this change is better for me: it’s easier and faster to redo the setup when I do a clean install, and it’s instant in everyday use which means it’s no longer frustrating.
I heard a lot about slowness of oh-my-zsh but never experienced it myself.

I had slow starts when I added nvm completion to .zshrc and .. maybe conda environment but that was unrelated to oh-my-zsh

I've also not experienced any slowness with oh-my-zsh. Now LunarVim, which is an IDE-like layer for Neovim...that's a totally different story.
Hmm? What about LunarVim?
If you add more than a handful of plugins in any of these IDE layers for Neovim, like LunarVim, LazyVim, AstroNvim, &c., it can slow things down to an unacceptable level quickly.
That really depends. On the iTerm2 terminal? Yes, sometimes. On Alacritty and Rio? Nope, it's very snappy.
> I heard a lot about slowness of oh-my-zsh but never experienced it myself.

This was years ago, no idea how it is today. But I also have no reason to go back.

> I had slow starts when I added nvm completion to .zshrc

That too, but that’s unrelated. To me that was yet another reason to stop using node altogether, I wasn’t enjoying it anyway.

PowerLevel10k has quite a bit of functionality, and is more performant in my experience, giving me the best of both worlds.

https://github.com/romkatv/powerlevel10k

While I love p10k and use it myself, note that p10k is just a theme, while ohmyzsh is a theme manager (that comes with default themes) + plugin manager + a collection of aliases + other QoL stuff.
p10k is not just a theme, it implements a whole prompt to realize features like instant and transient prompt. For example showing your current Kubernetes namespace while you are typing a kubectl command.
Having PowerLevel10k shortened as p10k bugs me, because "owerLevel10" is 11 characters.