下載 http://pan.baidu.com/s/1eRkEegM 解壓 終端中切換到下載文件的目錄下,執行以下命令: sudo tar -jxvf sublime_text_3_build_3083_x64.tar.bz2 sudo mkdir /opt/sublime_text_3 sudo
下載
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