Mac下iTerm2配置

2019-03-27  本文已影响0人  大地瓜_
  1. 使用 crul 安装
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

如果安装过程中出现需要安装git,则等git安装完成后重新执行上面指令,最后执行的结果如图所示,需要输入一次密码


安装omz
  1. 输入指令
➜  Documents vi ~/.zshrc
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"

不同的主题:https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

ZSH_THEME="agnoster"
  1. [字体下载页面]
    (https://github.com/powerline/fonts/blob/master/Meslo%20Slashed/Meslo%20LG%20M%20Regular%20for%20Powerline.ttf)

  2. 点击当前git页面的View Raw下载文件


    点击View Raw就可以下载字体
  3. 双击下载的文件直接安装成功

  4. 重新打开iTerm2,然后导入字体设置


    设置字体页面

1 . 安装指令 : brew install zsh-syntax-highlighting

  1. 配置.zshrc文件,最后一行插入
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  1. 激活配置文件
source ~/.zshrc
上一篇 下一篇

猜你喜欢

热点阅读