Powerline 플러그인 설치 on Ubuntu 20.04

AWS Ubuntu 20.04

Python2.7 설치

$ sudo apt install python2.7
$ sudo add-apt-repository universe
$ sudo apt update
$ curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
$ sudo python2 get-pip.py
$ sudo apt install curl # curl 없을 경우

Powerline 플러그인 설치

$ sudo pip install git+git://github.com/Lokaltog/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 apt-get install fontconfig
$ 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

# .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
language en_US.UTF-8
let g:Powerline_symbols = 'fancy'
set laststatus=2

# .tmux.conf
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"

Subscribe to Keun's newsletter and stay updated.

Don't miss anything. Get all the latest posts delivered straight to your inbox. It's free!
Great! Check your inbox and click the link to confirm your subscription.
Error! Please enter a valid email address!