热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

RedHat7安装SublimeText3

下载SublimeText3#wgethttp:c758482.r82.cf2.rackcdn.comsublime_text_3_build_3083_x64.ta
  • 下载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;

 


推荐阅读
author-avatar
kimjizi
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有