981 B
981 B
1.原码安装ZSH新版
ubuntu 18.04 安装的zsh版本较低(5.4)oh-my-zsh需要使用5.8以上
-
wget https://jaist.dl.sourceforge.net/project/zsh/zsh/5.8/zsh-5.8.tar.xz --no-check-certificate
-
tar xvf zsh-5.8.tar.xz
-
centos 需要
yum install gcc perl-ExtUtils-MakeMaker yum install ncurses-devel
-
cd zsh-5.8
-
./configure
-
make && make install
-
vim /etc/shells
添加/usr/local/bin/zsh
2.安装ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
3.安装插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
zsh-syntax-highlighting zsh-autosuggestions