[转]Centos 安装Sublime text 3

本文详细介绍了如何在CentOS系统上安装Sublime Text 3编辑器,包括创建安装目录、下载并解压安装包、创建桌面快捷方式等步骤。

  本文简单介绍在CentOS上安装Sublime text 3, 转自:Centos 安装Sublime text 3

Step 1 :建立软件安装目录

# mkdir /opt
# cd /opt

Step 2 :下载安装包

  到官网下载安装包,或者使用如下命令:

wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x64.tar.bz2

Step 3:解压

tar jxvf sublime_text_3_build_3059_x64.tar.bz2

Step 4:运行

# cd /opt/sublime_text_3
# ./sublime_text

Step 5:创建桌面快捷方式

# 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/sublime_text_3 --command new_file
OnlyShowIn=Unity;

Step 6:

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

【注意】配置文件标注红色的地方对应的是软件安装目录,需要改成你自己的安装目录。

转载于:https://www.cnblogs.com/Hi-blog/p/How-To-Install-Sublime-On-CentOS.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值