ZSH agnoster terminal


I will be briefly, because there is a lot of article how to install zsh and the agnoster theme in the terminal, just write a little cheat sheet,and some configurations for convenient use.


Update the packages

sudo apt-get update
sudo apt upgrade

Install  packages (ZSH, powerline & powerline fonts)

sudo apt install zsh
sudo apt-get install powerline fonts-powerline

Clone the Oh My Zsh Respo

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

Create a New ZSH configuration file

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Open .zshrc File using gedit and replace ZSH_THEME="robbyrussell" to agnoster

sudo gedit .zshrc

Change  default shell

chsh -s /bin/zsh

How to update manually oh-my-zsh you can visit - https://github.com/robbyrussell/oh-my-zsh#manual-updates

cd .oh-my-zsh

Install ZSH Syntax Highlighting for Oh My Zsh and add in .zshrc configuration

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1

echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"

You can also install some good plugins.For example i use zsh-autosuggestions.

And in the end you will have such a good terminal like this`. 

Why is the terminal background black because I have disabled edit->preferences->colors use colors from system theme


Revert Back to Default Shell

chsh -s /bin/bash


After installation, if you use phpstorm, you will have such a problem in the terminal.


To fix this problem, you need to open the fille-> settings-> editor-> color scheme-> console font and put the font Fira Code there and restart phpstrorm.