Skip to content
Prev 2547 / 15076 Next

Setting environment variables, especially http_proxy and ftp_proxy

On Apr 7, 2006, at 4:38 PM, Paul Roebuck wrote:

            
Just a quick warning: this works only for the login shell, but not  
for anything else (including the R GUI, xterm, Emacs, etc.). This was  
Doug's point - .profile is useless for this. Even system profile is  
not run in xterm (surprise), Emacs or R-GUI, so you have to be very  
careful where you set the variables. The .MacOSX/environment.plist  
albeit less flexible has the advantage of applying to all  
applications launched by LS, so that's pretty much everywhere except  
for remote invocations. Of course, anything you start manually from  
the shell will inherits the environment, but not if 'open' is used.

Cheers,
Simon