Switches proxy on/off accross your Linux environment and common dev tools.
Currently switches:
- Global http_proxy and https_proxy variables, impacting the following tools:
- composer
- platform (from platformSH)
- drush (Drupal tool)
- any other tools using Linux global proxy config
- GIT
- NPM
- cURL (via .curlrc)
- Download
proxy_switch.sh
- Configure a
~/.proxy.conf
file containing the following informations:
USER="user"
PASSWORD="password"
HOST="host"
PORT="port"
Usage: ./proxy_switch.sh [option...] {on|off}
-i, --info displays the proxy settings
- Make sure
~/.proxy.conf
file is set with appropriate configurations. - Make sure
proxy_switch.sh
is runnable via:chmod +x proxy_switch.sh