Skip to content

Instantly share code, notes, and snippets.

@mylamour
Created January 28, 2017 10:51
Show Gist options
  • Save mylamour/b2daf215a25e29d5e3ca9444bc7e1474 to your computer and use it in GitHub Desktop.
Save mylamour/b2daf215a25e29d5e3ca9444bc7e1474 to your computer and use it in GitHub Desktop.
different program use proxy in terminal/cmdline useage. example: git / python / npm
$ git config --global --unset https.proxy
$ git config --global http.proxy	

$ python -m pip --proxy http://127.0.0.1:1080 install --upgrade pip

$ npm config set proxy http://127.0.0.1:1080
$ npm config set https-proxy http://127.0.0.1:1080
@mylamour
Copy link
Author

export HTTP_PROXY=http://127.0.0.1:1080
export HTTPS_PROXY=http://127.0.0.1:1080
set  HTTP_PROXY=http://127.0.0.1:1080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment