通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
[TOC] 参考链接:[https://tonyxu.io/zh/posts/2018/ultimate-way-to-beautify-mac-terminal-and-recommendations-for-plugins/](https://tonyxu.io/zh/posts/2018/ultimate-way-to-beautify-mac-terminal-and-recommendations-for-plugins/) [https://www.jianshu.com/p/109e9cfe295b](https://www.jianshu.com/p/109e9cfe295b) ## 我准备这样改造Terminal 1. 配色方案[solarized](https://link.jianshu.com/?t=https://github.com/altercation/solarized) 2. 安装`oh-my-zsh`: 将Terminal的shell从bash改成更强大的zsh 3. 安装`oh-my-zsh`主题: 美化`oh-my-zsh` : 'ys' 4. 安装`oh-my-zsh`必备插件: 让Terminal具有更高级和便利的功能 ## 建议先安装homebrew, 方便后续工具安装: ``` /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ``` ## 安装oh-my-zsh 先安装zsh: ``` brew install zsh ``` 再安装`oh-my-zsh`: ``` sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" ``` ## 安装oh-my-zsh主题 ### 内置主题列表 `oh-my-zsh`提供一批内置主题,可以直接设置使用 1. 在内置主题列表寻找你你喜欢的主题:[https://github.com/robbyrussell/oh-my-zsh/wiki/Themes](https://github.com/robbyrussell/oh-my-zsh/wiki/Themes) 2. 在`~/.zshrc`配置文件里设置`ZSH_THEME`为你的主题名称 'ys' 3. 激活设置`source ~/.zshrc` ### 第三方主题列表 许多第三方也开发了供`oh-my-zsh`使用的主题,可以去第三方主题列表查看和安装: [https://github.com/robbyrussell/oh-my-zsh/wiki/External-themes](https://github.com/robbyrussell/oh-my-zsh/wiki/External-themes) ## 安装oh-my-zsh必备插件 `oh-my-zsh`有非常丰富的插件可供使用,下面列举一些必备插件,可以大幅提高生产力。 示例如下: ``` # ~/.zshrc: plugins=( git zsh-syntax-highlighting npm ) ``` ## 配色 下载:[https://github.com/altercation/solarized](https://github.com/altercation/solarized) 打开终端 -> 偏好设置 -> 描述文件 -> 导入文件,导入 `solarized/osx-terminal.app-colors-solarized/Solarized Dark ansi.terminal`,设置通用下的默认描述文件为`Solarized Dark ansi`