已经安装了iterm2,但是没有高亮和使用上功能不够强大,被同事安利zsh。
一、安装配置
1、安装
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
2、创建配置文件
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
3、设置zsh为默认shell
chsh -s /bin/zsh
至此,oh-my-zsh已经安装完成,现在重新打开shell终端试试看吧。 ~/.oh-my-zsh/themes有很多好看的主题,https://github.com/robbyrussell/oh-my-zsh/wiki/themes 也可以下载
我使用的是agnoster主题, ~/.zshrc修改配置
并source ~/zshrc更新一下你的zsh配置
当然,用上这个主题可能会出现乱码,官网已经提出了修复方式: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster
这里我用的是终端工具是Iterm2,需要修改一下配置: Perferences -> Profiles -> Default -> Text -> ChangeFont