Home Customize Oh My Zsh with Syntax Highlighting and Auto-Suggestions
Post
Cancel

Customize Oh My Zsh with Syntax Highlighting and Auto-Suggestions

As a developer, we spend a lot of time working on the terminal and having personalized shell makes the working environment perfect, decreases frustration and also, increases productivity.

In this blog, we will discuss how to quickly install plugins Auto-Suggestions and Syntax Highlighting in the oh-my-zsh theme.

Install Oh-My-Zsh using Curl:

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Let’s take a look at how to install plugins, and configure Zsh:

Install zsh-autosuggestions by running:

1
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

Install zsh-syntax-highlighting by running:

1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

Now, open .zshrc file with your favourite editor:

1
vim ~/.zshrc

And simply add zsh-autosuggestions & zsh-syntax-highlighting to plugins() section, it will do the magic for you:

1
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

And then source the .zshrc file using:

1
source ~/.zshrc
This post is licensed under CC BY 4.0 by the author.