by yjftsjthsd-h · 3y ago · 0 comments
I think the one legitimate exception to the rule is profile, because you need that in order to set the variables in the first place. So that one would somehow have to be hard coded to at least have a wider search path
Likewise, zsh will look for /etc/zshrc
And zsh will actually look at
$ZDOTDIR/.zshenv
$ZDOTDIR/.zprofile
$ZDOTDIR/.zshrc
$ZDOTDIR/.zlogin
$ZDOTDIR/.zlogout
So perhaps you can set the value of ZDOTDIR in one of the systemwide locations to use "$HOME/foo/bar/zsh/" and this way zsh will use ~/foo/bar/zsh/ as the location for the user specific .zshrc and other mentioned files for every userhttps://eng.libretexts.org/Bookshelves/Computer_Science/Oper...
https://bash.cyberciti.biz/guide/Setting_system_wide_shell_o...
You're welcome.