1、macos安装brew, Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"2、安装iterm2
brew install --cask iterm2注:如在安装中出现:Zsh: command not found: brew 错误,说明$PATH设置有问题。
如果您的 Mac 搭载了 Apple Silicon 芯片,请输入以下命令:
export PATH="/opt/homebrew/bin:$PATH"如果您的 Mac 配备 Intel 处理器,请改为输入以下命令:
export PATH="/usr/local/bin:$PATH"使用命令echo查看
echo $PATH
3、安装oh-my-zsh https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH(参考源码站)
brew install zsh4、设置并且运行shell。 (https://www.youtube.com/watch?v=GWutsiTwpqs)参考文件
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"vim ~/.zshrc #这是主要配置文件
更改主题文件。 (https://github.com/ohmyzsh/ohmyzsh/tree/master/themes)

更改插件 (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins)


评论区