Centos 安装Sublime text 3

1.下载sublime3

http://www.sublimetext.com/3

2.解压缩,即为安装。

cd /opt

tar xjf /home/alex/Downloads/sublime_text_3_build_3114_x32.tar.bz2

mv /opt/sublime_text_3 /opt/sublime_text_3_32

cd /opt/sublime_text_3_32

./sublime_text

奇怪的是没有正常起来。

3.改为桌面配置启动

cp -p /opt/sublime_text_3/sublime_text.desktop /usr/share/applications

更改配置文件,主要是修改文件目录

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text_3_32/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=/opt/sublime_text_3_32/Icon/48x48/sublime-txt.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text_3_32/sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text_3_32 --command new_file
OnlyShowIn=Unity;

4.打开软件。

应用程序 >编程 > Sublime Text”右键”将此启动器添加到桌面”.

你可能感兴趣的:(Centos 安装Sublime text 3)