Ah thank-you, yes fish_user_paths is what I was looking for, and
vaguely remembered reading.

For reference, the best docs seem to be:

http://fishshell.com/docs/2.0/#variables-special
https://github.com/fish-shell/fish-shell/issues/527#issuecomment-13811988
http://fishshell.com/tutorial.html # no anchor; see the $PATH section





Michael

On Sun, Aug 18, 2013 at 5:55 AM, Siteshwar Vashisht <[email protected]> wrote:
> Instead of directly modifying value of PATH in config file you should add a 
> new
> fish_user_paths universal variable which contains list of all the paths which
> you want to add to PATH. For e.g.
>
> set -U fish_user_paths ~/foo/ ~/bar/
>
> Now Fish will automatially add above listed directories to PATH.
>
> On Sunday 18 Aug 2013 12:25:12 AM Michael Stillwell wrote:
>> What's the recommended way to add a directory to $PATH?  It seems like
>> a simple task, but I'm having trouble preventing the directory from
>> being added multiple times every time I spawn a subshell, and making
>> the new path available to child processes...
>>
>> I'd also like the same code to work on OS X and Linux.  fish is my
>> login shell on both.
>>
>>
>>
>>
>> Michael
>>
>> ----------------------------------------------------------------------------
>> -- Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> It's a free troubleshooting tool designed for production.
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Fish-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fish-users
> --
> Regards,
> Siteshwar Vashisht

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to