Skip to content

Instantly share code, notes, and snippets.

@yize
Last active December 21, 2015 06:09
Show Gist options
  • Save yize/6262275 to your computer and use it in GitHub Desktop.
Save yize/6262275 to your computer and use it in GitHub Desktop.
Install Package Control for Sublime Text 3
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone git://github.com/wbond/sublime_package_control.git Package\ Control
cd Package\ Control
git checkout python3
# restart Sublime Text 3 and you should have Package Control working
@yize
Copy link
Author

yize commented Aug 18, 2013

import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

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