Download & Install
Personal habits to the official website to download the software, HTTP://WWW.SUBLIMETEXT.COM/2 choose the right package to download the format is . tar.bz2 format, need to be decompressed.
1. Unzip:
TAR-XVF sublime\ text\ 2.0.2.tar.bz2
2. In order to execute the./sublime_text file at any location in the terminal, save the extracted directory to the environment variable $path directory
$ cd Download/$ mv sublime\ text\ 2/usr/local/lib/
3. Create a shortcut to it (similar to the shortcut in Windows, actually a link)
$ ln-s/usr/local/lib/sublime\ text\ 2/sublime_text/usr/bin/sublimetext
In this way, anywhere in the terminal can open sublime text.
Configure Desktop Icon Shortcuts
Although this looks good, but far less than the Windows desktop to double-click an icon to facilitate, so we want to add a graphical version of the shortcut to open the way.
$ cd Desktop/$ Touch sublime.desktop
Under this desktop file, write the following content.
[Desktop Entry] Name=sublimetext 2genericname=text editorexec=sublterminal=falseicon=/usr/local/lib/sublime Text 2/Icon/48x48/ sublime_text.pngtype=applicationcategories=texteditor;ide;developmentx-ayatana-desktop-shortcuts=newwindow[ NewWindow Shortcut group]name=new windowexec=subl-ntargetenvironment=unity
After saving , double-click to open this file will prompt the window
"Untrusted Application Launcher", select still start, the desktop icon will become sublime logo, including the file suffix will also be hidden.
The configuration ends at this point.
This article is from the "Taeyeon" blog, make sure to keep this source http://taeyeon.blog.51cto.com/3898200/1577467
Linux Mint installs sublime text and configures desktop shortcuts