- create a file named
~/.env-proxy-onwith the following:
### PROXY STUFF
export NO_PROXY=127.0.0.1,localhost,192.168.99.100
export PROXY_HOST=192.168.50.100
export PROXY_PORT=3128
export PROXY=$PROXY_HOST:$PROXY_PORT
export PROXY_URL=http://$PROXY
export ALL_PROXY=$PROXY_URL
export HTTP_PROXY=$PROXY_URL
export HTTPS_PROXY=$PROXY_URL
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTPS_PROXY
### E_O_PROXY- create a file named
~/.env-proxy-offwith the following:
### PROXY STUFF
unset NO_PROXY
unset PROXY_HOST
unset PROXY_PORT
unset PROXY
unset PROXY_URL
unset ALL_PROXY
unset HTTP_PROXY
unset HTTPS_PROXY
unset http_proxy
unset https_proxy
### E_O_PROXY- create a script named
proxyonwith the following:
#!/bin/bash
[[ -e ~/.env-proxy-on ]] && source ~/.env-proxy-on- create a script named
proxyoffwith the following:
#!/bin/bash
[[ -e ~/.env-proxy-off ]] && source ~/.env-proxy-offThen, to enable terminal proxy run proxyon to disable them, run proxyoff