欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Ubuntu18.04 安装sublime,并解决中文输入

程序员文章站 2022-06-05 20:45:26
...

安装sublime

官网提供五种主流linux下载命令,可以自行查看

  • apt - Ubuntu, Debian
  • pacman - Arch
  • yum - CentOS
  • dnf - Fedora
  • zypper - openSUSE

apt

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

解决中文输入

git clone https://github.com/lyfeyaj/sublime-text-imfix.git
cd sublime-text-imfix && ./sublime-imfix

重启之后生效。

相关标签: ubuntu18.04 sublime