Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I discovered this issue 2-3 years ago. On slightly older machines, there was a palpable startup time. My fix was going through OhMyZSH and stripping away all the parts that I felt unnecessary (I call this my "leanZSH" and its considerably lighter version of OMZ.) It doesn't track upstream, and I manually update the plugin directory once in a while. Surprisingly OhmyZSH is pretty modular and doesn't break easily.

[Not the best hackjob out there but here it is:

https://github.com/gradientwolf/leanzsh

If you want to update it just copy over the latest `plugin/` folder from OMZ repo. You can get rid of all the plugins you dont want, as well as the themes. It somehow works]



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


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


In fact, sometimes I open bash even from zsh. When pasting from a script and debugging why something doesn't work as expected, I don't want bash-like. For ad-hoc loops, bash-like works well for me thanks to the familiarity of syntax.


You can use Antidote to selectively load the parts of OhMyZsh you need - https://github.com/getantidote/use-omz

My own usage: https://code.millironx.com/millironx/nix-dotfiles/src/commit...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: