On Tue, Apr 27, 2021 at 12:17:55PM +0000, tetrahe...@danwin1210.me wrote:
> On Tue, Apr 27, 2021 at 08:04:32AM +0300, Pierre-Philipp Braun wrote:
> > I believe there's no need for neither login-shells nor those X-level
> > tricks.  To load the interactive environment into xterms or screen, I
> > usually to define ENV accordingly in /etc/profile or .profile.  Not sure
> > it's the right way to also put PATH in (k)shrc, but it would also work.
> >
> > /etc/profile: export ENV=/etc/shrc
> >
> > or
> >
> > ~/.profile: export ENV=/root/.shrc
>
> That's very interesting. Can someone explain what this does?

This is incorrect (see upthread.) ENV is for setting what your interactive rc
ought to be. You usually point it at ~/.kshrc. If your session hasn't loaded
~/.profile in order to load $ENV then the kshrc won't necessarily be loaded
by your shell no matter what. For ~/.profile to be in your environmnt you
definitely need to load it in your xsession.

Danny

Reply via email to