apt-get install python-pip apt-get install git pip install git+git://github.com/Lokaltog/powerline wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf mv PowerlineSymbols.otf /usr/share/fonts/ wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf mv 10-powerline-symbols.conf /etc/fonts/conf.d/ apt-get install fontconfig fc-cache -vf /usr/share/fonts/ vi ~/.bashrc
在檔案裡面加入:
export TERM="screen-256color"
找出powerline-status的位置
pip show powerline-status
Name: powerline-status Version: 2.5.2.dev9999-git.5fa504118ee470e9cc9c8665515b77900ce5821e Location: /usr/local/lib/python2.7/dist-packages Requires:
將之再加到 ~/.bashrc 中
vi ~/.bashrc
貼上,看起來會像這樣:
powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 . /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
登出在登入即可看到效果。
在vim中套用之:
vi ~/.vimrc
加入以下語法:
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/ set laststatus=2 set t_Co=256
安裝
apt-get install vim-nox
完整說明:http://www.tecmint.com/powerline-adds-powerful-statuslines-and-prompts-to-vim-and-bash/