/proxysettings

proxy settings

Primary LanguageShellMIT LicenseMIT

proxysettings

A script that exports the proxy settings to the environment variables.

  • http_proxy
  • HTTP_PROXY
  • https_proxy
  • HTTPS_PROXY
  • ftp_proxy
  • FTP_PROXY

proxysettings

Usage

$ mv proxy.sh ~
$ source ~/proxy.sh

Input your proxy host, port, username, password.

No exported the settings if the host is empty. No credential if the username is empty.

if you want to start this when the tarminal starts.

$ echo "source ~/proxy.sh" >> ~/.bashrc

Saved settings ( host, port, username ) to ~/.proxysettings.

The password is URL encoded automatically.