安装powerline
sudo pip install powerline-status
sudo apt install fonts-powerline
sudo pip3 install powerline-gitstatus
.vimrc配置:
" add powerline for vim
set rtp+=~/powerline-2.8.3/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
.bashrc配置:
# add powerline for bash
#if [ -f ~/powerline-2.8.3/powerline/bindings/bash/powerline.sh ]; then
# source ~/powerline-2.8.3/powerline/bindings/bash/powerline.sh
#fi
.tmux.config配置:
source ~/powerline-2.8.3/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"
标签:set,256,配置,2.8,powerline,bindings,sudo,安装
From: https://www.cnblogs.com/liuhanxu/p/17588924.html