Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:from:date:message-id:subject:to:cc;
        bh=YaQRVkb2kroXXEhxzvKksM/1rMH1tAm+7MrKa78Frlw=;
        b=vkkqUojifdXpI2sgI8uj1GAxgaudpXrIyi7Y4wVc7uCBIuCOGBa3ORH0pZyXd83GCZ
         lrq6qUaoPB2A8CpQIplX7FDHs5id31NLQ1qI1DQfp4x8/FRa0Fs8ykRF08OddWkFEIYH
         pPwMlYQr39EoE7T9kkSsH/teQobymewKdBh6luM/G1LzfhO32As5nVp0ZJq4NB7gm5F/
         KIqmERfN85A7io7RMnDlqBb6TwXBiv1V0qZ1vfmzEp1nmPfpCcgs0l/Pq7X46+lncoGT
         atfdSZ3muedp2gULJ7miPrtKfZ8xl5THhh82WveNsv4zW4GB684J4C8H/5U8Ahy2PiYl
         NBuA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc;
        bh=YaQRVkb2kroXXEhxzvKksM/1rMH1tAm+7MrKa78Frlw=;
        b=eiZ2PKglv/vT23sMItPbYdcoy0wk45WAusIxVvkZF9sjespHVtoizVcKJ6YXe1rC21
         +jSZS2ycvTYqotEeOl92LQ+FRLn+GTO5eKddaCBmjdETPIId9lA0rn9XWurZkYYI+m+h
         uq5VRTdNTV9lqQQIZEp55UwtskiAImGihODA+jSuDbtG0D1Kqk+uOZVu/Y4tfaVIUYik
         v/aAJjkcQObHc8KPHgM4FRpIFMeIKAygZUGPXFURADEqM1xxsxvJxxvjH4Amt/FrcK4h
         7nOkoqlUki8YKnSHBpyNZrv+pMKfNPMat53bIqlCkM+lTqaekdbqqp2KzAxHaRuPVDWV
         VVMQ==
X-Gm-Message-State: ALyK8tKGNeN6nqijC1pSyeKbb7gAblvLliQl1OjjDuFtpdP6MVvIK3zOX/oE6FLLO85DgcZT31nW2n5U/kPonw==
X-Received: by 10.28.69.210 with SMTP id l79mr12378843wmi.31.1466676857815;
 Thu, 23 Jun 2016 03:14:17 -0700 (PDT)
MIME-Version: 1.0
From: Ben Woods <woodsb02@gmail.com>
Date: Thu, 23 Jun 2016 12:14:17 +0200
Message-ID: <CAOc73CDmw2uRuMReVoon-ncnPB-zqYi37x9T-wcqQZ_WdDccKw@mail.gmail.com>
Subject: --enable-etcdir for multiple locations (similar to PATH)
To: zsh-workers@zsh.org
Cc: adamw@freebsd.org
Content-Type: multipart/alternative; boundary=94eb2c0727821c46f30535ef516c
X-Seq: zsh-workers 38753

--94eb2c0727821c46f30535ef516c
Content-Type: text/plain; charset=UTF-8

Hi everyone,

I am wondering if it is possible to tell zsh to look in multiple different
locations for it's startup/shutdown configuration files?

I believe it is possible to change the location that it will look for them
at compile time with --enable-etcdir=INSERTDIRHERE. However, zsh then does
not look for the config files in the default /etc/ directory anymore - only
the newly specified directory.

As an example, it would be good if zsh could be configured at compile time
with a list of directories to search for config files in. If /usr/local/etc
is added to the list, it would look for /etc/zshrc and if it is not found,
it would look for /usr/local/etc/zshrc. The priority would be in the order
they were specified in the compile time flag (similar to PATH) - or they
could even both be read and compound each other.

This is important, because in FreeBSD, configuration files for ports are
not supposed to be in /etc, but in /usr/local/etc. However, we are aware
that many people with read the official zsh documentation at the link below
and try to put the configuration files in /etc.
http://zsh.sourceforge.net/Doc/Release/Files.html

Thanks for your help.

Regards,
Ben

--
From: Benjamin Woods
woodsb02@gmail.com

--94eb2c0727821c46f30535ef516c--

