- Install pip
sudo apt-get install python-pip
orwget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
- Install powerline
sudo pip install powerline-status
- Download and install fonts
git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
- Add this lines to respective file
.vimrc
set rtp+=/usr/local/lib/python2.7/dist-packages/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
if [ -f /usr/local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh ]; then
source /usr/local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
fi
.zshrc
if [[ -r /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh ]]; then
source /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
fi
.tmux.conf
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"
You have to set your font by the preferences of Ubuntu 18.04 LTS, right click the window to get to it. You will need to install the fonts first,
https://www.nerdfonts.com/font-downloads for fonts to use. Unzip a font and install it to Windows and then change the font using Ubuntu preferences.
Reason why you are getting question mark boxes because the default Windows font don't have the powerline fonts (because they don't have the fancy symbols), you have to set it to the ones that you downloaded and installed. Restart the app and then it should change. Assuming you are doing WSL Ubuntu. Sample of mines
