|
|
Set proxy environment variables automatically
Thanks, just what the doctor ordered! I've been thinking of writing something like this ever since I got my Mac (still less than a year ago.). :)
My gratitude for saving me the time to look up the information. I modified the output ever so slightly to fit my needs better to
Then I just alias my wget etc. commands like this:
So the proxy settings get refreshed automatically when I start a new wget process plus it only gets set for that specific process so there's no need for the unsets.
I use bash, I'm not sure if something like this is feasible with other shells. Now we just need to figure out how to take into account the proxy exclusion list...
Set proxy environment variables automatically
actually, that alias doesn't work. It gets expanded when it is declared, instead of at excecution time. Try this, with the original setproxy: in ~/.bashrc:
Set proxy environment variables automatically
The exclusion list problem is easily solved, simply set the $no_proxy enviromental variable, eg |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|