RedHat 7インストールSublime Text 3

1641 ワード

  • ダウンロード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;