Install Sublime Text 2 in Fedora

Source: Internet
Author: User
Tags sublime text editor

This sexy editor must be used.

1. download the Sulime Text.

Here is Sublime Text.

Tar-xf sublime.tar.bz2

Sudo mv Sublime opt/Sublime_Text_2

2. create a shotcut in the '/usr/bin' directory.

Sudo vim sublime

Paste the folloig in it:

#! /Bin/sh

Export SUBLIME_HOME = "/opt/Sublime_Text_2"

$ SUBLIME_HOME/sublime_text $ *


Save and Close the file. Move it to '/usr/bin directory.
Sudo chmod 555 sublime

Sudo mv sublime/usr/bin/sublime

This will create a system variable in the system, so We can access the Sublime text editor by calling sublime in the terminal.


3. create a desktop button

Sudo vim/usr/share/applications/sublime. desktop

Paste the following in it:

[Desktop Entry]
Encoding = UTF-8
Name = Sublime
Comment = Sublime Text Editor
Exec = sublime
Icon =/opt/Sublime_Text_2/Icon/256x256/sublime_text.png

Terminal = false
Type = Application
Categories = GNOME; Application; Development;
StartupNotify = true


That is it. You are done. save and exit the file. Logout from your system. Then login and in the finder type in sublime as the below image.



This article is from the "Keep it simple." blog, please be sure to Keep this source http://shenghao.blog.51cto.com/5890026/1302320

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.