6 ms·
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 th
by srvmshr 1y ago
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 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]
- SamDc73 1y agoI think you're better off switching to https://starship.rs 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
- lompad 1y agoWhy 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.
- Jubijub 1y agoFish is awesome, but there are times you need POSIX/ bash-like shell syntax
- ewuhic 1y agoThen you open bash and get POSIX and not bash-like, but bash.
- krab 1y agoIn 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.
- MillironX 1y agoYou can use Antidote to selectively load the parts of OhMyZsh you need - https://github.com/getantidote/use-omz https://github.com/getantidote/use-omz My own usage: https://code.millironx.com/millironx/nix-dotfiles/src/commit/73b7329a11dcc38070b2f36a646a81465434445e/homes/common.nix#L155-L174 https://code.millironx.com/millironx/nix-dotfiles/src/commit...