We stand with Palestine ✊ Free Palestine 🇵🇸

Beautify Your Terminal: Powerline Installation – Part 1

Beautify Your Terminal - Powerline Installation & Configuration

Linux distributions have come a long way in the past decade to the point where it is possible today to use Linux without getting into the dark of the terminal (CLI). However, the more you use and learn about Linux, the more you realize that it is inevitable to use the command-line interface. By default, the CLI has a simple interface that gets boring quickly. Luckily, you can illuminate the darkness of the terminal by beautifying it with plugins like Powerline. So what is Powerline? How do you install and configure it?

What Is Powerline?

Almost every Linux tools include a status line and a prompt. The status line displays information about a program’s current activity, and the prompt lets you input commands. The bash shell, Vim, and i3 window manager are typical embodiments of these concepts.

Powerline is a plugin written in Python that renders status lines and prompts attractively and consistently. It is stable, lightweight, customizable, and supports  Zsh, Bash, and Fish shells.

After this dose of knowledge, you should also learn how to install and configure Powerline.

How to Install and Configure Powerline?

Installing and configuring Powerline is an easy task that does not require much knowledge or effort, as all you have to do is follow the few simple steps below:

  1. Install Powerline using the following command line:
  • Ubuntu & Ubuntu-based distros:
sudo apt install powerline fonts-powerline
  • Arch & Arch-based distros:
sudo pacman -Sy powerline powerline-fonts
  • Fedora & Fedora-based distros:
sudo dnf install powerline powerline-fonts
  1. Open your shell script file:
  • Bash:
sudo nano .bashrc
  • Zsh:
sudo nano .zshrc
  1. Add the following lines to your shell script file:
bashrc:
#Powerline
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh
zshrc:
#Powerline
powerline-daemon -q

. /usr/share/powerline/bindings/zsh/powerline.zsh
  1. Save the change and exit: In Nano, press Ctrl+O to save, then Ctrl+X to exit.
  2. To activate the change, restart your terminal (close and reopen it).
  3. Feast your eyes on the beauty of the Powerline.

Is this not enough to light up the darkness of your terminal? Powerline has more hidden light sources waiting to be discovered by customizing the Powerline configuration file, which we will explore in Part II.

💬 What other tools do you use to beautify your terminal?

sniper1720

I’ve chosen to keep this blog free of AdSense and automated ads — making LTM one of the rare blogs that do. The only income comes from a handful of carefully selected affiliate links/banners (which, as you know, don’t go far). If you enjoy the blog, consider showing your support via

Every contribution helps!

Join the Discussion!

0 0 votes
Rate This Article
Subscribe
Notify of
guest
2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments