Install and Configure ZSH for Terminal Syntax Highlighting

sudo apt-get install zsh

In terminal type zsh, you be presented with a menu. Select option 0.

pluma ~/.zshrc Insert the following and save.

Restart Terminal and set ZSH as default.

zsh chsh -s /bin/zsh

You'll be presented with some questions when ZSH starts. Asking if you want to install the plugins from the configuration file. You do..

Type prompt -l This will return a list of the current themes available to us. You can check them out at https://bneijt.nl/blog/zsh-themes-for-prompts-screenshots/arrow-up-right

I am going to use the Kali layout. I just copied the config file from a Kali Box and pasted it into my config file. Not sure how good of an idea this is but so far so good...

If you would like to try it, here it is, just make sure to save your current config file as _old or something just incase!

Now for the moment of truth.. Trying to get Syntax Highlighting. If you don't already have it, install git:

sudo apt-get install git <-- most likely already installed.

Now Syntax highlighting:

And we did it !

Last updated