作者:kimjizi | 来源:互联网 | 2023-02-11 12:37
下载SublimeText3#wgethttp:c758482.r82.cf2.rackcdn.comsublime_text_3_build_3083_x64.ta
# wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x64.tar.bz2
tar -jxvf sublime_text_3_build_3083_x64.tar.bz2 -C /opt
# ln -sv /opt/sublime_text_3/sublime_text /usr/bin/sublime
# 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;