Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: --enable-etcdir for multiple locations (similar to PATH)
- X-seq: zsh-workers 38767
- From: Ben Woods <woodsb02@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: --enable-etcdir for multiple locations (similar to PATH)
- Date: Mon, 27 Jun 2016 10:38:01 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>, adamw@xxxxxxxxxxx
- 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==
- In-reply-to: <CAH+w=7Y7mXWfQodPuMTLhjXsSuU+ZQpVevTVPP0peynCz1kruQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAOc73CDmw2uRuMReVoon-ncnPB-zqYi37x9T-wcqQZ_WdDccKw@mail.gmail.com> <CAH+w=7Y7mXWfQodPuMTLhjXsSuU+ZQpVevTVPP0peynCz1kruQ@mail.gmail.com>
On 24 June 2016 at 01:09, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Jun 23, 2016 at 3:14 AM, Ben Woods <woodsb02@xxxxxxxxx> 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@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author