This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| powerline [2021/06/15 14:59] – created vissie | powerline [2021/06/17 14:42] (current) – [tmux] vissie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | =====Setup===== | + | ===== Install |
| - | < | + | sudo pip3 install git+git:// |
| - | sudo pip3 install psutil</code> | + | sudo pip3 install psutil |
| + | |||
| + | ===== Setup ===== | ||
| + | ==== Bash ==== | ||
| + | cp -r /usr/ | ||
| <sxh bash; gutter: false> | <sxh bash; gutter: false> | ||
| - | ### sudo vim / | + | |
| ## 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 | ||
| - | . / | + | . / |
| fi | fi | ||
| </ | </ | ||
| - | < | + | sudo apt-get install fonts-powerline |
| - | cd ./src | + | or |
| - | git clone https:// | + | |
| - | cd powerline-fonts | + | cd ./src |
| - | ./ | + | git clone https:// |
| - | </ | + | cd powerline-fonts |
| + | ./ | ||
| # 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 | + | |
| - | < | + | ==== Vim ==== |
| + | | ||
| <sxh bash; gutter: false> | <sxh bash; gutter: false> | ||
| set rtp+=/ | set rtp+=/ | ||
| Line 27: | Line 34: | ||
| </ | </ | ||
| + | In the Terminal app, select your font. Seem I like Noto Mono for Powerline Regular size 10 | ||
| + | ==== tmux ==== | ||
| + | # powerline-config tmux setup | ||
| + | vim ./ | ||
| + | <sxh bash; gutter: false> | ||
| + | source / | ||
| + | set-option -g default-terminal " | ||
| + | </ | ||
| + | |||
| + | tmux source-file ~/ | ||
| + | tmux kill-server # You need to restart tmux entirely after changing .tmux.conf. | ||