본문 바로가기
Linux

Powerline vim, bash

by wlgpdnjs 2017. 7. 4.

vim, bash에 powerline 적용하기


sudo apt-get install python-pip git

sudo pip install git+git://github.com/Lokaltog/powerline

which powerline

wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf
  https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf

sudo mv PowerlineSymbols.otf /usr/share/fonts

sudo fc-cache -vf

sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d

# ~/.bashrc에 추가

if [ -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh ]; then
    source /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
fi

# /etc/vim/vimrc에 추가

set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/

" Always show statusline
set laststatus=2

" Use 256 colours (Use this setting only if your terminal supports 256 colours)
set t_Co=256



루트 계정도 적용하려고 /etc/bash.bashrc에 추가함


출처 : http://shayete.tistory.com

'Linux' 카테고리의 다른 글

Install z3 on Ubuntu x64  (0) 2017.07.04