LYNX

Links

Tags

Categories

ubuntu配置sublime

安装

Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Ensure apt is set up to work with https sources:

sudo apt-get install apt-transport-https

Select the channel to use:

  • Stable
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  • Dev
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text

sudo apt-get update
sudo apt-get install sublime-text

sublime-merge

在之前的基础上

sudo apt-get install sublime-merge

不能输入中文

在终端输入subl后能输入中文

简书

固定到收藏夹

参考:CSDN

创建sublime.sh:

#!/bin/bash
LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so subl

创建my_sublime.desktop:

[Desktop Entry]
Name = my_sublime
Icon = 还没有
Type = Application
Exec = path_to/sublime.sh

修改my_sublime.desktop的权限,然后

sudo cp my_sublime.desktop /usr/share/applications/

my_sublime添加到收藏夹

latex

  1. 安装texlive

  2. 安装latex-tools

  3. Preference$\to$Packages Settings$\to$LaTeXTools

"linux" : {
// Path used when invoking tex & friends; MUST include $PATH
"texpath" : "$PATH:/usr/local/texlive/2018/bin/x86_64-linux",
}
  1. 如果编译错误,在latex语法下按ctrl+shift+b选择用xelatex编译

Tags

Categories

1 / 1