* Missing .zshenv file in /etc
@ 2020-05-27 12:58 Rob Mardin
2020-05-27 13:16 ` Peter Stephenson
2020-05-27 14:54 ` TJ Luoma
0 siblings, 2 replies; 4+ messages in thread
From: Rob Mardin @ 2020-05-27 12:58 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 331 bytes --]
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.
Many thanks for your help.
Robert.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Missing .zshenv file in /etc
2020-05-27 12:58 Missing .zshenv file in /etc Rob Mardin
@ 2020-05-27 13:16 ` Peter Stephenson
2020-05-27 14:00 ` Perry Smith
2020-05-27 14:54 ` TJ Luoma
1 sibling, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2020-05-27 13:16 UTC (permalink / raw)
To: Rob Mardin, zsh-users
> On 27 May 2020 at 13:58 Rob Mardin <rmardin@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Missing .zshenv file in /etc
2020-05-27 13:16 ` Peter Stephenson
@ 2020-05-27 14:00 ` Perry Smith
0 siblings, 0 replies; 4+ messages in thread
From: Perry Smith @ 2020-05-27 14:00 UTC (permalink / raw)
To: Peter Stephenson; +Cc: Rob Mardin, zsh-users
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@ntlworld.com> wrote:
>
>
>> On 27 May 2020 at 13:58 Rob Mardin <rmardin@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Missing .zshenv file in /etc
2020-05-27 12:58 Missing .zshenv file in /etc Rob Mardin
2020-05-27 13:16 ` Peter Stephenson
@ 2020-05-27 14:54 ` TJ Luoma
1 sibling, 0 replies; 4+ messages in thread
From: TJ Luoma @ 2020-05-27 14:54 UTC (permalink / raw)
To: Rob Mardin; +Cc: Zsh MailingList
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
Two things:
1. The file is ~/.zshenv when for the particular user, but /etc/zshenv when
it is for all userrs
2. The /etc/zshenv on macOS is empty, by default. /etc/zshrc is not. So if
you do not have an /etc/zshenv file, that's OK, but you should have a
/etc/zshrc file.
Tj
On Wed, May 27, 2020 at 8:59 AM Rob Mardin <rmardin@gmail.com> 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.
>
> Many thanks for your help.
>
> Robert.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-27 14:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 12:58 Missing .zshenv file in /etc Rob Mardin
2020-05-27 13:16 ` Peter Stephenson
2020-05-27 14:00 ` Perry Smith
2020-05-27 14:54 ` TJ Luoma
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).