mac电脑安装item2、oh-my-zsh
1、下载item2
Downloads - iTerm2 - macOS Terminal ReplacementiTerm2 is a replacement for Terminal and the successor to iTermhttps://iterm2.com/downloads.html
2、安装homebrew
默认安装脚本
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
如果你等待一段时间之后遇到下面提示,就说明无法访问官方脚本地址:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
这个时候你执行下面的命令就可以了:(需要等待一会,别着急)
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
3、验证brew
brew -v
4、安装oh-my-zsh
// via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
// via wget
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
// 或者git
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh