/proxy_env

Switch proxy setting on terminal

Primary LanguageShellMIT LicenseMIT

proxy_env

Installation

Clone this repository.

$ git clone https://github.com/OUDON/proxy\_env ~/.proxy\_env

Add the following to your .bash_profile.

if [ -z "$PROXY_ENV_ROOT" ]; then
  export PROXY_ENV_ROOT=$HOME/.proxy_env
  export PATH=$PROXY_ENV_ROOT/bin:$PATH
  eval "$(proxy_env init)"
fi

Usage

Add proxy config.

$ proxy_env add <PROXY_NAME> http://proxy.example.com:port

Set the proxy.

$ proxy_env set <PROXY_NAME>

Show added proxies.

$ proxy_env lis

License

This software is released under MIT license.
(c) 2017 OUDON.