Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of Proxy Setting #989

Closed
ykh opened this issue Jun 10, 2016 · 5 comments
Closed

Lack of Proxy Setting #989

ykh opened this issue Jun 10, 2016 · 5 comments
Labels
👆 ConEmu Upstream issue in ConEmu.

Comments

@ykh
Copy link

ykh commented Jun 10, 2016

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

@Stanzilla Stanzilla added the 👆 ConEmu Upstream issue in ConEmu. label Jun 10, 2016
@daxgames
Copy link
Member

daxgames commented Jun 10, 2016

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.

@ykh
Copy link
Author

ykh commented Jun 10, 2016

It works. Tnx @daxgames :)
BTW I think cmder needs some interface about proxy settings.

@daxgames
Copy link
Member

daxgames commented Jun 10, 2016

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.

@kopf
Copy link

kopf commented Mar 13, 2017

How does one best add exceptions (e.g. localhost,127.0.0.1) when the proxy is defined by environment variable like this?

@Jackbennett
Copy link
Contributor

Jackbennett commented Mar 13, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 ConEmu Upstream issue in ConEmu.
Projects
None yet
Development

No branches or pull requests

5 participants