On Tue, May 27, 2008 at 10:37 PM, Sorin Ionescu <[EMAIL PROTECTED]>
wrote:

> It does not work like that. /etc/profile must be sourced every time at
> login. That's what bash does because /etc/profile.d/* is sourced by
> /etc/profile. In that folder applications that need environmental
> variables install scripts to set them. That's why you have to relogin
> or resource /etc/profile after you install java, mozilla, et al.


I think the suggestion was to generate a fish-parsable profile which you
source at login. This is what I have done using some horribly ugly hand
rolled ruby scripts to convert formats. The other interesting thing you can
experiment once you've done this is making many of the profile environment
variables universally scoped, and thus even easier to keep in sync across
shells. However, a big word of caution: *do not* under any circumstances
make PATH universal. I speak from bitter experience, as you will be unable
to edit it safely, and find surprising amounts of breakage from various fish
scripts that are constantly run and expect access to a valid PATH. =/ Other
profile-based variables are great though! ;]

-Chandler


>
>
> On Mon, May 26, 2008 at 7:03 PM, Philip Ganchev <[EMAIL PROTECTED]>
> wrote:
> > On Mon, May 26, 2008 at 11:16 AM, Sorin Ionescu <[EMAIL PROTECTED]>
> wrote:
> >> Hello,
> >>
> >> Should not something like this be in the global config.fish?
> > [...]
> >
> > I think those scripts are useful for converting your init scripts to
> > Fish, but why do every time you log in? Just do it when you install
> > Fish.
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to