Zsh Users: how do you manage plugins?

I used to use antibody when I first migrated, but I found NixOS is a pretty good zsh plugin manager all by itself. You can see starting from my interactiveShellInit, that I actually pull plugins directly from nixpkgs and just source them directly into the global rc.

I really don’t use that many plugins, but since I am really concerned with shell load time, this is an ideal solution, as I don’t have to wait on a plugin manager every time my shell starts. You can see I am using some plugins from oh-my-zsh, for example, without having to actually configure or use the entire oh-my-zsh setup (saving significant load time).

If you want to do something similar, but the plugin you use isn’t in nixpkgs, you could simply define an overlay for it and go from there. Good luck.

1 Like