Skip to content

Instantly share code, notes, and snippets.

@timyhac
Created June 29, 2016 02:40
Show Gist options
  • Save timyhac/e3b0948007cf5ad013ce247e131ac0b6 to your computer and use it in GitHub Desktop.
Save timyhac/e3b0948007cf5ad013ce247e131ac0b6 to your computer and use it in GitHub Desktop.
Set proxy in linux from command line
PROXY="http://username:password@host:port"
export http_proxy=$PROXY
export https_proxy=$PROXY
@timyhac
Copy link
Author

timyhac commented Jun 29, 2016

Use in a bash session by dot sourcing:
. SET_PROXY.sh
which will leave the variables exported

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