安装命令#
# 安装zsh
sudo apt install zsh
# 下载oh my zsh
git clone git@github.com:ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
# 复制oh my zsh配置
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# 设置默认终端为zsh
chsh -s /bin/zsh
# 打开zsh
zsh
# 下载补全插件
git clone git@github.com:zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# 编辑配置文件,修改 plugins=(git zsh-autosuggestions)
nano ~/.zshrc
# 重启zsh
source .zshrc
参考 oh-my-zsh安装
