CentOS7 安裝Sublime Text 3

來源:互聯網
上載者:User

CentOS7 安裝Sublime Text 3

一、到官網下載sublime text 3的壓縮包

1、找到這句話

[plain]view plaincopyprint?
  1. Ubuntu64bit-alsoavailableasa<spanstyle="color:#FF0000;">tarball</span>forotherLinuxdistributions.

2、由於不是Ubuntu系統,所以不要點擊Ubuntu的連結,點擊“tarball”的下載連結,下載tar.bz2格式的壓縮包

二、解壓縮

[plain]view plaincopyprint?
  1. tarjxvfsublime_text_3_build_3114_x64.tar.bz2

三、測試

[plain]view plaincopyprint?
  1. //進入解壓縮後的目錄中
  2. cd/opt/sublime_text_3
  3. //啟動sublime
  4. ./sublime_text
  5. //正常情況下可以看到sublime的介面了

四、配置捷徑功能表

[plain]view plaincopyprint?
  1. //複製預設的快捷設定檔案到/usr/share/applications/目錄下(紅色標註修改為你自己的sublime安裝路徑)
  2. cp<spanstyle="color:#ff0000;">/opt/sublime_text_3/</span>sublime_text.desktop/usr/share/applications/
  3. //編輯預設的設定檔案
  4. vimsublime_text.desktop
1、參考圖(把紅框內容修改為你自己的檔案目錄)

2、修改完儲存退出

[plain]view plaincopyprint?
  1. :wq!
3、設定檔案中的 “Categories”項是用來設定菜單顯示在哪個類別下,這個得根據實際情況來設定,預設的是 “TextEditor;Development;”,我的系統裡沒有這兩個類別,所以我需要添加一個系統中已經存在的類別,我選擇Documentation,如,添加在最後面即可

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.