Powerline Shell Prompt

Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.

Installation

Powerline has two components, the plugin system itself (powerline) and the fonts (powerline-fonts). Both are available in the Software Center or via eopkg in a terminal:

sudo eopkg it powerline powerline-fonts

To get powerline working inside your terminal, you need to add the following commands to the .bashrc inside your $HOME directory.

Shell Prompts

The Powerline daemon is not running automatically by any of the bindings. It is advised to add the following before any other powerline-related code in the shell configuration file

powerline-daemon -q

Bash

powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
source /usr/lib/python3.9/site-packages/powerline/bindings/bash/powerline.sh

Busybox and dash

source /usr/lib/python3.9/site-packages/powerline/bindings/shell/powerline.sh

Fish

source /usr/lib/python3.9/site-packages/powerline/bindings/fish/powerline-setup.fish

Zsh

source /usr/lib/python3.9/site-packages/powerline/bindings/zsh/powerline.zsh

Read more about powerline inside the Docs Link