From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65815 invoked by alias); 14 Oct 2015 16:20:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 65723 invoked by uid 89); 14 Oct 2015 16:20:16 -0000 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 Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 14 Oct 2015 16:20:13 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1ZmOmb-0005iS-8c ; Wed, 14 Oct 2015 19:20:05 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 14 Oct 2015 16:16:29 -0000 Date: Wed, 14 Oct 2015 16:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1891296661.20151014191629@yandex.ru> To: Adam Dinwoodie , cygwin@cygwin.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.GN14466@dinwoodie.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00164.txt.bz2 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