Vim Powerline 설치

Python pip, git 설치가 필요

sudo apt-get install python-pip git

Powerline 플러그인 설치

sudo pip install git+git://github.com/Lokaltog/powerline
설치 잘 되었는지 확인
which powerline
/usr/local/bin/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/

Bash config

.bashrc (~/.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

Vim config

.vimrc (/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



language en_US.UTF-8
let g:Powerline_symbols = 'fancy'
set laststatus=2

Tmux config

~/.tmux.conf

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

ValueError: unknown locale: UTF-8 in Python

Add these lines to your ~/.bash_profile: (.bashrc)

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Oh My ZSH!

: agnoster 테마 폰트 깨짐 없이 사용하기

# ZSH설치
sudo apt-get install zsh # 설치 후 기본 셸 zsh로 변경
chsh -s /usr/bin/zsh # which zsh확인했을 때의 위치

# Oh My ZSH! 설치
재부팅 후, 2번 설정
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo apt-get install curl # curl설치가 안되어있을 경우우

# Agnoster 테마로 변경
sudo vi .zshrc
ZSH_THEME="agnoster"

# 폰트 다운로드 및 터미널 폰트 변경
git clone https://github.com/powerline/fonts.git
cd fonts # 디렉터리 들어가서 폰트 설치
./install.sh

터미널 사용자 지정글꼴 Ubuntu Mono derivative Powerline Regular

Subscribe to Keun's Story 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!