Skip to content

Instantly share code, notes, and snippets.

@stupidloud
Last active October 30, 2022 06:12
Show Gist options
  • Select an option

  • Save stupidloud/d5e9d78984c8cb6fc6e0e89ed0692bf8 to your computer and use it in GitHub Desktop.

Select an option

Save stupidloud/d5e9d78984c8cb6fc6e0e89ed0692bf8 to your computer and use it in GitHub Desktop.
debian/ubunt/raspbian(raspberry pi) install powerline/vim-airline

Install packages

apt update && apt install powerline powerline-gitstatus vim-airline vim-airline-themes vim-fugitive

bash configuration

add these lines to the bottom of /etc/bash.bashrc

if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
  powerline-daemon -q
  POWERLINE_BASH_CONTINUATION=1
  POWERLINE_BASH_SELECT=1
  source /usr/share/powerline/bindings/bash/powerline.sh
fi

fish

add these lines to the bottom of /etc/fish/config.fish

set fish_function_path $fish_function_path "/usr/share/powerline/bindings/fish"
source /usr/share/powerline/bindings/fish/powerline-setup.fish
powerline-setup

tmux

add these lines to the bottom of ~/.tmux.conf

set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",*256col*:Tc"
source "/usr/share/powerline/bindings/tmux/powerline.conf"

vim-airline

add these lines to the bottom of /etc/vim/vimrc

set laststatus=2
set showtabline=2
set noshowmode
set t_Co=256
set termguicolors

let g:airline_theme="luna" "you may like it

let g:airline_powerline_fonts = 1

let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_nr_show = 1

Results:

屏幕截图 2021-02-27 112316

屏幕截图 2021-02-27 112350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment