From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28554 invoked by alias); 27 Jun 2016 08:43:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38767 Received: (qmail 13306 invoked from network); 27 Jun 2016 08:43:22 -0000 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: References: From: Ben Woods Date: Mon, 27 Jun 2016 10:38:01 +0200 Message-ID: Subject: Re: --enable-etcdir for multiple locations (similar to PATH) To: Bart Schaefer Cc: Zsh hackers list , adamw@freebsd.org Content-Type: multipart/alternative; boundary=001a114b4018353f4205363e7036 --001a114b4018353f4205363e7036 Content-Type: text/plain; charset=UTF-8 On 24 June 2016 at 01:09, Bart Schaefer wrote: > On Thu, Jun 23, 2016 at 3:14 AM, Ben Woods 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--