1.安装zsh
brew install zsh
2.设置默认
将zsh设置成默认的shell:chsh -s /bin/zsh
3.根据以下命令安装ohmyzsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
或
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
网友评论