I have the following proxy info in my bash_profile:
export http_proxy=http://work.proxy.address.com:8080 export https_proxy=$http_proxy export no_proxy="localhost,.workURL.com"
This allows me to run stuff like Homebrew without having to switch my wifi at work (we have two wifi networks--one is proxied). The issue is if I'm at home and not connected to the proxy, I can't use Homebrew or push commits to Github unless I comment out the proxy stuff.
Is it possible to conditionally use these proxy env variables based on the network I'm connected to?