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
