Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Missing .zshenv file in /etc



I have these files:

    -rw-r--r--  1 root  wheel   260 Oct 13  2019 /etc/zshenv
    -r--r--r--  1 root  wheel  3094 Feb 29 00:58 /etc/zshrc
    -rw-r--r--  1 root  wheel   911 Sep  3  2019 /etc/zshrc_Apple_Terminal

I’m on macOS 10.15.4 and I did a fresh install so I’m pretty sure I have the “stock” configuration.

> On May 27, 2020, at 8:16 AM, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> 
> 
>> On 27 May 2020 at 13:58 Rob Mardin <rmardin@xxxxxxxxx> wrote:
>> Hello there; I am scratching my head to find how to create .zshenv in /etc
>> folder on Mac OS (Catalina). I thought that this file is automatically
>> created. Could someone help point me to how to autoconfig, ie reinstantiate
>> zsh so that I have the necessary files to start learning zsh scripting.
> 
> No idea about Mac OS, but normally that file --- actually /etc/zshenv, no "."
> --- isn't present on most systems, as it would be executed by every
> single instance of zsh that starts on the system.  This is generally a bad
> thing unless there's some overriding local reason for that.
> 
> It's much more normal to have other /etc/z* files, trying looking for those.
> 
> I'm not sure learning zsh scripting form standard system files is a
> particularly great way anyway, but I'm saying that without having actually
> looked at the Mac OS ones.  There will be plenty of examples around the web.
> 
> pws



Messages sorted by: Reverse Date, Date, Thread, Author