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:in-reply-to:references:from:date:message-id:subject:to
         :cc;
        bh=6hLeKMiz/pdvGPIuzb75JGA0/C+gc1FMYJJ939RMc0s=;
        b=bT3iiMQUN0c6GVdWqae7yB/2U4PIOc/qXyPRDG49Y/7zW60euppPJD6/H5XSpVYqfc
         WekOWeWT+j1xyz1c91db9M12tKYNH/FjS/xhRmn/WKFrbs3PmVHGnaMYZ0Sj0nv/iZk2
         7WmMo3CbmZxrThdBGm/DcyxNoIFZnu/Z3QCGWCby1cO/4SPYuPSoUg3wFs4rQ5PO3rYy
         yg2lIreuzAJZdGedgTMBYt+8VUJ50OBFMNR+fPqrX96PKXaY+HYQYn1kW4LTmc92xjaI
         e9FbqF3c7VFSnsNMrLdwlurdzhhlZI9sz8H9tf3RiiQO2BDy+jdm9AvvQn6RV1Vpi8RJ
         K0Pw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:cc;
        bh=6hLeKMiz/pdvGPIuzb75JGA0/C+gc1FMYJJ939RMc0s=;
        b=Cj1uHeZhXT0RcP7d+DvDwjRmjGpP7oa2LwQkyI51G06qooDDZ/OJt5+1B8MHT8PCwM
         d5qniB+ucBAvWKrviXbLSWXjGcss8W/LiOjj/jBmpP3zIJZ+IAcng2UGWxOixnDXEdRp
         P7jWY2VcSCIsE+wy4xlMX9h8RQFllzwg8vFN8RzSI+CzYPYb7XhvqVHLOlhR9/ldwVSq
         S6A3z8FM9jTYONKwwfg2toCRSc+Mftm7+s0Dwd3+gvtZhaU/iMs+GM+jwScommAFfSof
         tloEOSz8o/SB5G8WxnMzrgi3Bg0YGTDC/ECI9xW/NEZ8UBoWf5KjvPu8A+ZNSlpDEq3I
         cr8Q==
X-Gm-Message-State: ALyK8tKLeWVvgubHWXXn3GQrj4m2+UnOAlousAoElKPjy/byV/9cNaDAkNlx979J9eml1j0C+q7sYTreVqPR+g==
X-Received: by 10.28.167.136 with SMTP id q130mr9862030wme.62.1467016681961;
 Mon, 27 Jun 2016 01:38:01 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAH+w=7Y7mXWfQodPuMTLhjXsSuU+ZQpVevTVPP0peynCz1kruQ@mail.gmail.com>
References: <CAOc73CDmw2uRuMReVoon-ncnPB-zqYi37x9T-wcqQZ_WdDccKw@mail.gmail.com>
 <CAH+w=7Y7mXWfQodPuMTLhjXsSuU+ZQpVevTVPP0peynCz1kruQ@mail.gmail.com>
From: Ben Woods <woodsb02@gmail.com>
Date: Mon, 27 Jun 2016 10:38:01 +0200
Message-ID: <CAOc73CChcZnwKO6oJ3aB8yTRnfx=dLyB1j948RFYvpCOvEYGfA@mail.gmail.com>
Subject: Re: --enable-etcdir for multiple locations (similar to PATH)
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>, adamw@freebsd.org
Content-Type: multipart/alternative; boundary=001a114b4018353f4205363e7036
X-Seq: zsh-workers 38767

--001a114b4018353f4205363e7036
Content-Type: text/plain; charset=UTF-8

On 24 June 2016 at 01:09, Bart Schaefer <schaefer@brasslantern.com> wrote:

> On Thu, Jun 23, 2016 at 3:14 AM, Ben Woods <woodsb02@gmail.com> wrote:
> >
> > I am wondering if it is possible to tell zsh to look in multiple
> different
> > locations for it's startup/shutdown configuration files?
>
> No, it's not.  We discussed this issue several (more like many) years
> ago and concluded that the number of different ways that zsh can find
> configuration files is already complicated enough, maybe even too
> complicated.
>
> > 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.
>
> The correct solution to this is for the port itself to supply the
> /usr/local/etc file containing something like e.g for
> /usr/local/etc/zshrc
>
> [[ -f /etc/zshrc && ! /etc/zshrc -ef /usr/local/etc/zshrc ]] && source
> /etc/zshrc
>
> Additional tests to prevent recursive "source"ing are possible but may
> be overkill.
>

Thanks for the reply Bart. The FreeBSD port has now been updated by adamw
to look for the config files in /usr/local/etc.
http://www.freshports.org/shells/zsh

Regards,
Ben

--
From: Benjamin Woods
woodsb02@gmail.com

--001a114b4018353f4205363e7036--

