mac环境准备
- mac 系统版本
macOS Monterery
版本: 12.1
- 查看当前shell
echo $SHELL
-
下载并安装git
-
安装homebrew完全版
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
- 查询iterm2
brew search iterm2
- 安装iterm2
brew install iterm2
- 搜索zsh相关插件
brew search zsh
- 安装zsh
brew install zsh
- 安装zsh 语法高亮
brew install zsh-syntax-highlighting
- 安装zsh 自动补全
brew install zsh-completions
- 手工安装oh my zsh
git clone https://gitee.com/mirrors/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
- 如果遇见zsh权限,如下解决
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions
- 搜索hosts
brew search hosts
- 安装switchhosts
brew install switchhosts
- 查询ip地址网站
https://ipaddress.com/