Installing Powerline on OS X + homebrew

首先安装:

iTerm2、zsh(oh my zsh) 

然后安装powerline及其字体:

Installing Powerline on OS X
  1. Install python with homebrew: brew install python
  2. Install vim with homebrew: brew install vim --env-std --override-system-vim. You must install vim after python so that it’ll compile with homebrew’s python.
  3. Install powerline with pip: pip install https://github.com/Lokaltog/powerline/tarball/develop. Powerline should get installed to /usr/local/lib/python2.7/site-packages/powerline.
  4. open /usr/local/lib/python2.7/site-packages/powerline – you should see the files required for integration with zsh, vim, tmux, etc. in the bindingsdirectory. All you need to do now is to include these bindings in your zsh, vim and tmux config files – it’s that simple!
  5. Add Powerline to vim by adding these lines to ~/.vimrc:
    source /usr/local/lib/python2.7/site-packages/powerline/bindings/vim/plugin/powerline.vim
    set laststatus=2
  6. Add Powerline to tmux by adding this to ~/.tmux.conf:
    source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
  7. Add Powerline to zsh by adding this to ~/.zshrc:
    source /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh

    If you use oh-my-zsh, be sure to source the Powerline bindings after oh-my-zsh’s.

  8. Grab a patched font from https://github.com/Lokaltog/powerline-fonts (I use Inconsolata), and install it (just download, double-click the font file, and Install). If you don’t use any of these fonts, you’ll have to patch your favorite fontyourself (have fun with that!)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值