Re: [arch-general] Setting global environment variable

2010-02-03 Thread Ty John
On Wed, 3 Feb 2010 11:03:01 +0100 Damjan Georgievski wrote: > > Install the foxy-proxy extension for Firefox, it'll allow you to > quickly change the proxy > > > Thanks, I'll give it a crack

Re: [arch-general] Setting global environment variable

2010-02-03 Thread Damjan Georgievski
> Taking another look at this. It doesn't really work the way I had > hoped. I can set the $http_proxy variable when connecting to the VPN > but the variable is only valid from the bash shell it was called from. > Is there no way to make existing processes acknowledge the variable? no, environment

Re: [arch-general] Setting global environment variable

2010-02-02 Thread Ty John
On Mon, 1 Feb 2010 17:13:55 -0500 Daenyth Blank wrote: > On Mon, Feb 1, 2010 at 17:11, Ty John wrote: > > Basically, I want to set and unset the variable when I connect and > > disconnect the VPN. > > The best way is probably to have a set of aliases in your bashrc that > run it and set the var

Re: [arch-general] Setting global environment variable

2010-02-01 Thread Ty John
On Mon, 1 Feb 2010 17:13:55 -0500 Daenyth Blank wrote: > On Mon, Feb 1, 2010 at 17:11, Ty John wrote: > > Basically, I want to set and unset the variable when I connect and > > disconnect the VPN. > > The best way is probably to have a set of aliases in your bashrc that > run it and set the var

Re: [arch-general] Setting global environment variable

2010-02-01 Thread Daenyth Blank
On Mon, Feb 1, 2010 at 17:11, Ty John wrote: > Basically, I want to set and unset the variable when I connect and > disconnect the VPN. The best way is probably to have a set of aliases in your bashrc that run it and set the variables. Scripts and functions cannpt modify the calling environment.

[arch-general] Setting global environment variable

2010-02-01 Thread Ty John
I'm regularly connecting and disconnecting to a VPN using vpnc. The network I connect to has a transparent proxy which I want to set $http_proxy to. I thought I could do something like export http_proxy="proxy.whatever.com" in the /etc/rc.d/vpnc file, in the start and stop functions as necessary