User Tools

Site Tools


powerline

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
powerline [2021/06/15 15:06] vissiepowerline [2021/06/17 14:42] (current) – [tmux] vissie
Line 1: Line 1:
-=====Setup===== +===== Install ===== 
-  sudo pip install git+git://github.com/Lokaltog/powerline+  sudo pip3 install git+git://github.com/Lokaltog/powerline
   sudo pip3 install psutil   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>
 +  sudo apt-get install fonts-powerline
 +or
   cd ~   cd ~
   cd ./src   cd ./src
Line 19: Line 25:
  
 # 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 
 +==== Vim ====
   sudo vim /etc/vim/vimrc.local   sudo vim /etc/vim/vimrc.local
 <sxh bash; gutter: false> <sxh bash; gutter: false>
Line 26: Line 33:
 set t_Co=256 set t_Co=256
 </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.1623794773.txt.gz · Last modified: 2021/06/15 15:06 by vissie