Created
June 29, 2016 02:40
-
-
Save timyhac/e3b0948007cf5ad013ce247e131ac0b6 to your computer and use it in GitHub Desktop.
Set proxy in linux from command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROXY="http://username:password@host:port" | |
export http_proxy=$PROXY | |
export https_proxy=$PROXY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use in a bash session by dot sourcing:
. SET_PROXY.sh
which will leave the variables exported