How to add powerline to Kali Linux

This is a quick note on how you can install powerline on your Kali Linux. It has been tested on Kali 2018.4.

Use the apt package manager to install powerline

apt-get install powerline

then edit the ~/.bashrc -file and add these lines:

#Powerline
if [ -f `which powerline-daemon` ]; then
  powerline-daemon -q
  POWERLINE_BASH_CONTINUATION=1
  POWERLINE_BASH_SELECT=1
  . /usr/share/powerline/integrations/powerline.sh
fi

tmux powerline

When hacking in Kali Linux, one terminal window soon is not enough. A terminal multiplexer can help. Tmux is a great choice and powerline makes it even better. If you are a beginner in tmux, check out this nice cheatsheet: https://tmuxcheatsheet.com/

To add powerline to tmux, add this line to ~/.tmux.conf:

source "/usr/share/powerline/bindings/tmux/powerline.conf"

Leave a Reply

Your email address will not be published. Required fields are marked *