Skip to content

Instantly share code, notes, and snippets.

@vdw
Last active December 17, 2015 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdw/5549622 to your computer and use it in GitHub Desktop.
Save vdw/5549622 to your computer and use it in GitHub Desktop.
All about Sublime and its packages

Install Sublime Text 2 on Ubuntu

Add repository

sudo add-apt-repository ppa:webupd8team/sublime-text-2

Update

sudo apt-get update

Install Sublime Text 2

sudo apt-get install sublime-text

Install Package Manager

Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console.

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')

Must-Have Packages

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