1、下载sublime text 2文件,解压并复制到/opt目录,文件夹名称不要含有空格
2、在/usr/share/applications目录下新建sublime_text.desktop文件
3、文件输入以下内容:
[Desktop Entry] Version=2.0 Name=Sublime Text Comment=ST2 Type=Application Categories=Utility; Icon=/opt/SublimeText2/Icon/48x48/sublime_text.png Exec=/opt/SublimeText2/sublime_text %F
注销重新登陆即可