Skip to content

Switch proxy on/off accross Linux environment and common dev tools.

License

Notifications You must be signed in to change notification settings

dclause/proxy_switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Proxy Switch

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)

Install

  • Download proxy_switch.sh
  • Configure a ~/.proxy.conf file containing the following informations:
USER="user"
PASSWORD="password"
HOST="host"
PORT="port"

Usage

Usage: ./proxy_switch.sh [option...] {on|off}

-i, --info displays the proxy settings

Troubleshooting

  • Make sure ~/.proxy.conf file is set with appropriate configurations.
  • Make sure proxy_switch.sh is runnable via: chmod +x proxy_switch.sh

About

Switch proxy on/off accross Linux environment and common dev tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages