1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 安装zsh
sudo apt install zsh

# 下载oh my zsh
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

# 复制oh my zsh配置
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

# 设置默认终端为zsh
chsh -s /bin/zsh

# 下载补全插件
git clone git@github.com:zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# 编辑配置文件,修改 plugins=(git zsh-autosuggestions)
vim ~/.zshrc

# 重启zsh
source .zshrc