Hackernoon logoCustomize Oh My Zsh with Syntax Highlighting and Auto-Suggestions by@soniasingla

Customize Oh My Zsh with Syntax Highlighting and Auto-Suggestions

image
Sonia Singla Hacker Noon profile picture

@soniasinglaSonia Singla

I love to travel, teach, and speak about open source ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป

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:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
NOTE:
ZSH
and
OhMyZsh
both are different.

Letโ€™s take a look at how to install plugins, and configure Zsh:

Install zsh-autosuggestions by running:

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

Install zsh-syntax-highlighting by running:

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:

nano ~/.zshrc

And simply add

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

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

Reopen terminal to reconfigure the settings and Voila! ๐ŸŽ‰

Previously published here.

Sonia Singla Hacker Noon profile picture
by Sonia Singla @soniasingla. I love to travel, teach, and speak about open source ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ปRead my stories

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.