Linux Mint installs sublime text and configures desktop shortcuts

Source: Internet
Author: User
Tags sublime text linux mint

Download & Install

Personal habits to the official website to download the software, HTTP://WWW.SUBLIMETEXT.COM/2 choose the right package to download the format is . tar.bz2 format, need to be decompressed.

1. Unzip:

TAR-XVF sublime\ text\ 2.0.2.tar.bz2

2. In order to execute the./sublime_text file at any location in the terminal, save the extracted directory to the environment variable $path directory

$ cd Download/$ mv sublime\ text\ 2/usr/local/lib/

3. Create a shortcut to it (similar to the shortcut in Windows, actually a link)

$ ln-s/usr/local/lib/sublime\ text\ 2/sublime_text/usr/bin/sublimetext

In this way, anywhere in the terminal can open sublime text.

Configure Desktop Icon Shortcuts

Although this looks good, but far less than the Windows desktop to double-click an icon to facilitate, so we want to add a graphical version of the shortcut to open the way.

$ cd Desktop/$ Touch sublime.desktop

Under this desktop file, write the following content.

[Desktop Entry] Name=sublimetext 2genericname=text editorexec=sublterminal=falseicon=/usr/local/lib/sublime Text 2/Icon/48x48/ sublime_text.pngtype=applicationcategories=texteditor;ide;developmentx-ayatana-desktop-shortcuts=newwindow[ NewWindow Shortcut group]name=new windowexec=subl-ntargetenvironment=unity

After saving , double-click to open this file will prompt the window

"Untrusted Application Launcher", select still start, the desktop icon will become sublime logo, including the file suffix will also be hidden.

The configuration ends at this point.

This article is from the "Taeyeon" blog, make sure to keep this source http://taeyeon.blog.51cto.com/3898200/1577467

Linux Mint installs sublime text and configures desktop shortcuts

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.