Loading

powerline安装配置方法

安装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"
posted @ 2023-07-28 21:13  刘跑跑  阅读(88)  评论(0编辑  收藏  举报