[Attn: base-files maintainer] Changing /etc/profile to add more shell-dependent settings
Yaakov Selkowitz
yselkowitz@cygwin.com
Wed Oct 14 16:20:00 GMT 2015
On Wed, 2015-10-14 at 16:52 +0100, Adam Dinwoodie wrote:
> 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.
Bash is covered by the "profile_d sh" command therein.
> 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.
Note that /etc/profile is only for Bourne-compatible shells; those that
are not must use their own mechanism to accomplish the same thing (e.g.
tcsh in /etc/csh.cshrc). As fish has a different syntax, it may fall
into this category as well.
--
Yaakov
--
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
More information about the Cygwin
mailing list