At any time you can type proxy_on/proxy_off to enable/disable proxy.
You may need to hardcode your password, proxy server, and proxy port on line 11. Just replace each $VAR_NAME with the actual value.
Put this file in your home directory. Make sure the file is called .bashrc. Append this to the file if it already exists.