User Tools

Site Tools


powerline

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
powerline [2021/06/15 14:59] – created vissiepowerline [2021/06/17 14:42] (current) – [tmux] vissie
Line 1: Line 1:
-=====Setup===== +===== Install ===== 
-<code>sudo pip install git+git://github.com/Lokaltog/powerline +  sudo pip3 install git+git://github.com/Lokaltog/powerline 
-sudo pip3 install psutil</code>+  sudo pip3 install psutil 
 + 
 +===== Setup ===== 
 +==== Bash ==== 
 +  cp -r /usr/local/lib/python3.7/site-packages/powerline/config_files/* .
 <sxh bash; gutter: false> <sxh bash; gutter: false>
-### sudo vim /etc/bash.bashrc +  sudo vim /etc/bash.bashrc 
 ## Powerline ## Powerline
 if [ -f `which powerline-daemon` ]; then if [ -f `which powerline-daemon` ]; then
Line 9: Line 13:
     POWERLINE_BASH_CONTINUATION=1     POWERLINE_BASH_CONTINUATION=1
     POWERLINE_BASH_SELECT=1     POWERLINE_BASH_SELECT=1
-    . /usr/local/lib/python3.7/dist-packages/powerline/bindings/bash/powerline.sh+    . /usr/local/lib/python3.7/site-packages/powerline/bindings/bash/powerline.sh
 fi fi
 </sxh> </sxh>
-<code>cd ~ +  sudo apt-get install fonts-powerline 
-cd ./src +or 
-git clone https://github.com/powerline/fonts.git --depth=1 powerline-fonts +  cd ~ 
-cd powerline-fonts +  cd ./src 
-./install.sh +  git clone https://github.com/powerline/fonts.git --depth=1 powerline-fonts 
-</code>+  cd powerline-fonts 
 +  ./install.sh 
 # When it comes to choosing a font for powerline, I recommend firstly previewing them in an application called font-manager # When it comes to choosing a font for powerline, I recommend firstly previewing them in an application called font-manager
-sudo apt install font-manager +  sudo apt install font-manager 
-<code>sudo vim /etc/vim/vimrc.local</code>+==== Vim ==== 
 +  sudo vim /etc/vim/vimrc.local
 <sxh bash; gutter: false> <sxh bash; gutter: false>
 set  rtp+=/usr/local/lib/python2.7/site-packages/powerline/bindings/vim/ set  rtp+=/usr/local/lib/python2.7/site-packages/powerline/bindings/vim/
Line 27: Line 34:
 </sxh> </sxh>
  
 +In the Terminal app, select your font. Seem I like Noto Mono for Powerline Regular size 10
 +==== tmux ====
 +#  powerline-config tmux setup
 +  vim ./.tmux.conf 
 +<sxh bash; gutter: false>
 +source /usr/local/lib/python3.7/dist-packages/powerline/bindings/tmux/powerline.conf
 +set-option -g default-terminal "screen-256color"
 +</sxh> 
 +
 +  tmux source-file ~/.tmux.conf  # Run this after you changed your color settings for it to update
 +  tmux kill-server # You need to restart tmux entirely after changing .tmux.conf.
powerline.1623794376.txt.gz · Last modified: 2021/06/15 14:59 by vissie