mac自定义终端主题iTerm2oh-my-zshpowerlinesolarized安装iTerm2iTerm2比mac自带终端更强大的终端软件,直接在官网下载:http://iterm2.com/配置将iTem2设置为默认终端:(顶部菜单栏)iTerm2 -> Make iTerm2 Default Term设置热键为cmd+.安装主题 solarized官网:https://ethanschoonover.com/s…下载:http://ethanschoonover.com/so…解压后进入iterm2-colors-solarized/目录下,有两个主题文件,在iTerm2中导入即可安装oh-my-zshgithub:https://github.com/robbyrussell/oh-my-zsh可以使用以下任意一种方式安装:crul:sh -c "$(curl -fsSL https://raw.github.com/robbyr...)"wget:sh -c "$(wget https://raw.githubusercontent… -O -)“修改主题vim ~/.zshrc# 找到 ZSH_THEME=“robbyrussell” 这一行# 修改为 ZSH_THEME=“agnoster” (也可以使用ys)# 保存退出source ~/.zshrc注意:这时候有可能会出现乱码 ,安装好PowerLine字体后解决。安装PowerLine字体cd ~/Downloadsgit clone https://github.com/powerline/fonts.gitcd fontsinstall.sh # 安装字体修改iTerm2的默认字体语法高亮插件brew install zsh-syntax-highlightingsource /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zshsource ~/.zshrc