X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=EN2WliI11kNHVSfd BDye27AX+ZaGr6dRwJPgt11BRSLaQEAQkYmiFLc8YE+ETsE06hS8LjYhaKGhNVhu PO2oGzLtwzXJ0hk/vLPFCCwXcs/+wgXtTHmbk3asWRgF5JXWpTMxQjDKVVMTx9Us 0U1XitDKIoHtBf4B4XgALzNWFCQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=vcAUr6A5RFWeHhJgjKEwJb yH0Gs=; b=ejt7woiW0Hw69NMAyuN4prCAKeW3AJf+JA6NqMwK+qxW3j44cKSo2Y fN/5g4vqD74JDnpTb2WLYvEw5EH7N16IjnhGftgIASuAGJfMCnC0yZ6WPTdTS3+d efZcTbmxXU2pIVuup0Wz/1sSx1n8QBdUsrVp2NbDXCt7hTXukHgBU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Wed, 14 Oct 2015 19:16:29 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1891296661.20151014191629@yandex.ru> To: Adam Dinwoodie , cygwin AT cygwin DOT com Subject: Re: [Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings In-Reply-To: <20151014155256.GN14466@dinwoodie.org> References: <20151014155256 DOT GN14466 AT dinwoodie DOT org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Adam Dinwoodie! > The /etc/defaults/etc/profile file in base-files has a section at the > end to import scripts in /etc/profile.d, but this currently only works > with zsh. It also works for generic ".sh" files (see directly above that monstrous `if` switch. > Can this section be expanded to make calls as appropriate for other > shells? I'm particularly interested in Fish and Bash, although I don't > see any reason to limit the change to those shells. For what it's worth, I don't know any adopted 'standard' extension for bash, other than '.sh', which is already covered. > I care about this because I'm currently investigating packaging fzf[0]. > The obvious way to include the shell-specific keyboard shortcuts for fzf > is to add them to /etc/profile.d, but currently that only works for > Z-Shell. As I mentioned earlier, it works for generic .sh files. Also, please pay attention to the note placed in the zsh section that it is probably a BAD IDEA to do that in this particular manner. -- With best regards, Andrey Repin Wednesday, October 14, 2015 19:13:11 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple