사용자 도구

사이트 도구


linux:powerline

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
linux:powerline [2013/09/09 01:26]
kwon37xi 새로 만듦
linux:powerline [2020/06/06 23:37] (현재)
kwon37xi [Powerline]
줄 2: 줄 2:
   * [[https://github.com/Lokaltog/powerline|powerline]]   * [[https://github.com/Lokaltog/powerline|powerline]]
   * [[https://powerline.readthedocs.org/en/latest/index.html|Powerline Documentation]]   * [[https://powerline.readthedocs.org/en/latest/index.html|Powerline Documentation]]
 +  * [[https://github.com/kwon37xi/nanumgothiccoding-for-powerline|나눔고딕코딩 for Powerline]]
 +  * [[https://github.com/Lokaltog/powerline-fonts|Powerline fonts]] 파워라인용으로 패치된 오픈소스 글꼴.<code sh>
 +
 +# Debian/Ubuntu
 +sudo apt-get install fonts-powerline
 +
 +# 글꼴 설치 후
 +fc-cache -vf ~/.fonts
 +</code>
 +
 +===== 설치 =====
 +  * Python PIP가 필요하다.<code sh>
 +sudo apt-get install python-pip
 +sudo apt-get install libc6-devS
 +pip install --user git+git://github.com/Lokaltog/powerline
 +# $HOME/.local/lib/python-버전/site-packages/powerline 에 설치됨
 +</code>
 +  * 설정<code sh>
 +mkdir ~/.config/powerline
 +cp -R ~/.local/lib/python2.7/site-packages/powerline/config_files/* ~/.config/powerline
 +</code>
  
 ===== Bash ===== ===== Bash =====
-  * Git 브랜를 려면 ''default_leftonly'' 테마를 사용해야다.+  * powerline 설치 경로중 ''bin'' 디렉토리가 ''PATH''에 들어가야 한다.(통은 ''~/.local/bin''
 +  * ''~/.config/powerline/config.json''에서 ''shell -> theme''를 **default_leftonly**로 변경해야 git 등의 브랜치 이름이 보인다. 
 +  * ''~/.bashrc''<code sh> 
 + 
 +export PATH=${PATH}:${HOME}/.local/bin 
 +# 경로는 powerline을 설치한 곳으로 적절히 변경 
 +# 기존 PS1 관련 설정은 삭제 
 +source $HOME/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh 
 +</code>
  
 +==== Vim ====
 +<code vim>
 +if (filereadable($HOME . "/.local/lib/python2.7/site-packages/powerline/bindings/vim/plugin/powerline.vim"))
 +    set rtp+=~/.local/lib/python2.7/site-packages/powerline/bindings/vim
 +    set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 11
 +endif
 +</code>
linux/powerline.1378657604.txt.gz · 마지막으로 수정됨: 2013/09/09 01:26 저자 kwon37xi