Hi
I need using cmder through proxy (because of some restriction on my network and failed to get some github libraries from repos)
I had lots of search, nothing found about proxy setting in cmder.
Any solution?
Tnx
In cmder session:
Set http_proxy=http://[proxy]:[port]
Set https_proxy=http://[proxy]:[port]
In bash session:
export http_proxy=http://[proxy]:[port]
export https_proxy=http://[proxy]:[port]
In PowerShell session:
$env:http_proxy=http://[proxy]:[port]
$env:https_proxy=http://[proxy]:[port]
You can also add these commands to a proxy.cmd, proxy.sh, and proxy.ps1
script in the [cmder]\config\profile.d folder to set the proxy on every
session start.
It works. Tnx @daxgames :)
BTW I think cmder needs some interface about proxy settings.
What I told you is it. This is the way to use proxy in Windows and Linux consoles. It really has nothing to do with cmder.
How does one best add exceptions (e.g. localhost,127.0.0.1) when the proxy is defined by environment variable like this?
you would set no_proxy just like you commented: https://msdn.microsoft.com/en-us/library/hh272656(v=vs.120).aspx
But It's going to be up to applications to find and respect that settings.
You might want to make a function that sets the process env http_proxy to DIRECT so you can quickly flip between them.
Most helpful comment
In cmder session:
Set http_proxy=http://[proxy]:[port]
Set https_proxy=http://[proxy]:[port]
In bash session:
export http_proxy=http://[proxy]:[port]
export https_proxy=http://[proxy]:[port]
In PowerShell session:
$env:http_proxy=http://[proxy]:[port]
$env:https_proxy=http://[proxy]:[port]
You can also add these commands to a proxy.cmd, proxy.sh, and proxy.ps1
script in the [cmder]\config\profile.d folder to set the proxy on every
session start.