CurrentLocation=`networksetup -getcurrentlocation` if [ "$CurrentLocation" == "Caterpillar" ]; then export http_proxy=http://proxy.cat.com:80 echo http_proxy=http://proxy.cat.com:80 fi
15" Macbook Pro Retina, 2.6GHz Intel Core i7, NVIDIA GeForce GT 650M 1024 MB, 16GB 1600 MHz DDR3 RAM, 500GB SSD, Mac OSX Mavericks 10.9
Thursday, November 28, 2013
Automatically Setting Proxies in OSX for Terminal Windows
If you want your proxies to be set based on network locations add the following to your .bash_profile file (located in your user home directory) using your editor of choice (vi, vim, nano, etc).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment