[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: profile.d equivalent for non-login shells
From: |
Eli Schwartz |
Subject: |
Re: Feature request: profile.d equivalent for non-login shells |
Date: |
Thu, 10 Oct 2019 00:26:37 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 |
On 10/10/19 12:20 AM, lists@ifohancroft.com wrote:
> Hi Everyone!
>
> I'm IFo.
>
> I would like to request the addition of a bashrc.d folder in /etc that
> gets sourced by /etc/bashrc for non-login shells. A non-login shells
> equivalent to profile.d
>
> This would make for a very elegant and beautiful solution for when
> software needs a script to be sourced for a non-login shell
profile.d isn't a thing, except inasmuch as your Linux distro most
likely includes code in /etc/profile to check for files in
/etc/profile.d/ and source those too.
So, feel free to add the same for loop in your /etc/bashrc, in order to
source /etc/bashrc.d/* files.
I don't think there is anything to be done in the bash project itself.
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
signature.asc
Description: OpenPGP digital signature