We stand with Palestine ✊ Free Palestine 🇵🇸

Setting Up Zsh with Powerline on Solus

Setting Up Zsh with Powerline on Solus

Ever wondered about Zsh and its perks? Zsh, or the Z shell, is a Unix shell offering extensive improvements over its predecessors like Bash and ksh. It features advanced functionalities such as the z-comm and for quick directory navigation, auto-completion, auto-correction, and customizable color highlighting. In this tutorial, we’ll explore the process of setting up Zsh with Powerline on Solus, enabling you to elevate your command line experience.

Zsh’s Features Explained

  • The z-command: With the z command, you can navigate to a frequently/recently visited directory just by typing z , followed by the directory name.
  • Auto-completion: You can just type the command, followed by -, then hit tab. This action will then immediately display all of the available options for that command.
  • Auto-correction: In the Z shell, if you make an innocent typo while writing a file location, for example, spell correction is built-in and will automatically detect the typo.
  • Color customization: Zsh add color highlighting to directories. Additionally, the font-weight will be slightly bolder. This is extremely helpful to see what’s a file and what’s a directory.

Setting Up Zsh

  1. Install Zsh:
sudo eopkg it zsh
  1. Change Shell:
sudo chsh -s /bin/zsh $(whoami)
  1. Log out and back in to apply changes.

Setting Up Powerline

  1. Install Powerline:
sudo eopkg it powerline powerline-fonts
  1. Configure Zshrc:
echo "powerline-daemon -q" >> ~/.zshrc
echo "source /usr/lib/python3.7/site-packages/powerline/bindings/zsh/powerline.zsh" >> ~/.zshrc
  1. Close and relaunch the terminal to enjoy the enhanced features of Zsh and Powerline.
How to Set Up Powerline on Solus

Setting Up Powerline for Bash on Solus

Congratulations! You’ve now set up Zsh and Powerline on your Solus system, empowering yourself with a more efficient and visually appealing command line interface.

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
4 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments