下载
http://pan.baidu.com/s/1eRkEegM
解压
终端中切换到下载文件的目录下,执行以下命令:
sudo tar -jxvf sublime_text_3_build_3083_x64.tar.bz2
sudo mkdir /opt/sublime_text_3
sudo mv ./sublime_text_3/* /opt/sublime_text_3
创建可执行文件
sudo touch /usr/bin/sublime
sudo vim /usr/bin/sublime
sudo chmod 755 /usr/bin/sublime
把以下代码复制进sublime这个文件:
#!/bin/sh
export SUBLIME_HOME="/opt/sublime_text_3"
$SUBLIME_HOME/sublime_text $*
创建桌面启动方式和设置图标
sudo touch /usr/share/applications/sublime.desktop
sudo vim /usr/share/applications/sublime.desktop
复制以下代码进去:
[Desktop Entry]
Encoding=UTF-8
Name=Sublime
Comment=Sublime Text Editor
Exec=sublime
Icon=/opt/sublime_text/Icon/256x256/sublime-text.png
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
到这里就安装完成了,你可以使用sublime命令或者在程序菜单中启动Sublime Text 3