Quickly installing Sublime Text 2 in Linux Mint 15

Sublime Text is my new favourite text editor. It has some really awesome functionality and a clean, modern interface.

Sometimes you just can’t be bothered using tar, putting the binary in the right place, working out how to get it onto the menu. I downloaded the Sublime Text 2 tar.bz2, and realised I had to do this manually.

Ubuntu and derivatives like Mint allow you to use PPAs – software repositories that aren’t included by default but can easily be added so that you install binaries easily. The most widely known one is for installing Java, but there is also one for installing Sublime Text 2.

You do this as follows:

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

Job done – on the menu, with a short command line alias “subl” to use as well.