RedHat7安装Sublime Text 3
- 下载Sublime Text 3
# wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x64.tar.bz2
- 解压Sublime Text 3
tar -jxvf sublime_text_3_build_3083_x64.tar.bz2 -C /opt
- 创建软连接
# ln -sv /opt/sublime_text_3/sublime_text /usr/bin/sublime
- 创建Gnome桌面启动项文件
# cp /opt/sublime_text_3/sublime_text.desktop /usr/share/applications
- 修改启动项文件
# vim /usr/share/applications/sublime_text.desktop
[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/sublime_text %F Terminal=false MimeType=text/plain; Icon=/opt/sublime_text_3/Icon/48x48/sublime-text.png Categories=TextEditor;Development; StartupNotify=true Actions=Window;Document; [Desktop Action Window] Name=New Window Exec=/opt/sublime_text_3/sublime_text -n OnlyShowIn=Unity; [Desktop Action Document] Name=New File Exec=/opt/sublime_text_3/sublime_text --command new_file OnlyShowIn=Unity;