linux 安装zsh.md
检测zsh
zsh --version
# 没有的话
apt install zsh
on-my-zsh 安装
一、自动安装
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
二、手动安装
- 克隆仓库
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
- 创建一个新的zsh配置文件
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
- 改变默认的Shell
chsh -s /bin/zsh
- 设置
# 在 ~/.zshrc 最后添加 .bash_profile
source ~/.bash_profile
# 重载配置文件
source ~/.zshrc
仅供参考