iTerm2比mac自带终端更强大的终端软件,直接在官网下载:http://iterm2.com/git
cmd+.
官网:https://ethanschoonover.com/s...github
下载:http://ethanschoonover.com/so...vim
解压后进入iterm2-colors-solarized/
目录下,有两个主题文件,在iTerm2中导入便可bash
github:https://github.com/robbyrussell/oh-my-zsh
curl
可使用如下任意一种方式安装:字体
# curl sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # wget sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
vim ~/.zshrc # 找到 ZSH_THEME="robbyrussell" 这一行 # 修改成 ZSH_THEME="agnoster" (也可使用ys) # 保存退出 source ~/.zshrc
注意:这时候有可能会出现乱码,安装好PowerLine字体后解决。url
cd ~/Downloads git clone https://github.com/powerline/fonts.git cd fonts bash install.sh # 安装字体
修改iTerm2的默认字体spa
zsh: command not found: xxx
若是以前是用~/.bash_profile
配置环境变量的可能会出现这个问题,执行如下操做能够解决:插件
vim ~/.zshrc # 找到『# User configuration』这行 # 在下方添加 『source ~/.bash_profile』 # 保存退出 source ~/.zshrc
重启命令行窗口后解决命令行
brew install zsh-syntax-highlighting source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ~/.zshrc