Re:Show HN: A fix for the .bash_profile .bashrc .profile mad...
by masklinn on Saturday August 11, 2012 @12:13PM
(#4370362)
Yeah, my point was simply that other advanced shells have as many files they may source as bash (if not more), with similar naming conventions. So holding that against bash and bash alone didn't make much sense.
The details and decision tree of zsh's initialization are rather well documented already (if complex) and beyond the scope of making that point.
/etc/zshenv is always sourced, and there's no way to stop that. On the other hand, you can control if /etc/zshrc (etc) are sourced with:
But you would have to put it in .zshenv for it to get sourced at the right time.