How do I get Sublime Text 2 package manager to use my proxy?

gerobk picture gerobk · Aug 21, 2012 · Viewed 18.9k times · Source

I have to work through a proxy at the office and when I press (Ctrl+Shift+P), type Install and try to load a package list, I get the error "Package Control: There are no packages available for installation."

In my 'Package Control.sublime-settings' I have:

{
    "auto_upgrade_last_run": 1345569476,
    "http_proxy": "http://user_name:password@<proxy-name>:<proxy_port>"
}

What am I missing OR what is a better option for me to control my system using the proxy. Once I get home I typically have to disable these proxies. Is there a truly system-wide way to make it use a proxy and then disable the proxy with a single command or click?

Also this is in Ubuntu 12.04.

EDIT: Sublime Text Package Manager has been updated to include options for working through a proxy, you can find this in the package settings.

Answer

Fragmentation Needed picture Fragmentation Needed · Jun 25, 2013

You do not need the http:// part. For example:

"http_proxy": "proxy.my.net:8080",
"https_proxy": "proxy.my.net:8080",

At least, this works for me, on Ubuntu and on Windows also.