티스토리 뷰

Memo/기타

Powerline 설치 및 설정

Tribal 2017. 3. 12. 19:14

기본 설치

$ apt-get update
$ apt-get upgrade
$ apt update
$ apt upgrade
$ apt install python python-pip git
$ apt install fontconfig
cs


powerline 설치 & 폰트 적용

# 설치
$ pip install git+git://github.com/Lokaltog/powerline
$ wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf 
$ wget https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
 
# 폰트 적용
$ mv PowerlineSymbols.otf /usr/share/fonts/
$ mv 10-powerline-symbols.conf /etc/fonts/conf.d/
cs


bash 설정(전체 사용자 대상)

$ vim /etc/bash.bashrc 
 
if [ -/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
cs


vim 설정(전체 사용자 대상)

$ vim /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
set ts=8
set sw=4
set sts=4
set nu
set smartindent
set cindent
cs


tmux 설정(솔직히 뭐하는건지 모르겠으나 하라고 하니깐...)

$ vim ~/.tmux.conf
 
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"
 
# 다른 사용자도 
$ cp ~/.tmux.conf .
$ chown tribal.tribal .tmux.conf 
cs


완료! 

그냥 터미널에서는 깨지고 Xshell 등으로 실행시키면 예쁘게 적용된다.

따로 색상을 설정하는 방법도 있는 것 같지만 디자인도 잘 모르고 기본도 예쁘니 Pass..



'Memo > 기타' 카테고리의 다른 글

번역할 사이트 목록  (0) 2017.10.08
Sublime Text 패키지 설치  (0) 2016.08.27
댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31