This is the mail archive of the
mailing list for the Cygwin project.
Re: [Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Adam Dinwoodie <cygwin at cygwin dot com>, cygwin at cygwin dot com
- Date: Wed, 14 Oct 2015 19:16:29 +0300
- Subject: Re: [Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings
- Authentication-results: sourceware.org; auth=none
- References: <20151014155256 dot GN14466 at dinwoodie dot org>
- Reply-to: cygwin at cygwin dot com
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`
> 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.
> 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
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,
Wednesday, October 14, 2015 19:13:11
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple