oh-my-zsh syntax highlighting plugin

Never Code Alone
2 min readJun 29, 2023

--

With the zsh-syntax-highlighting plugin you can enable syntax highlighting in oh-my-zsh. As a webdeveloper this has the great advantage to know already at the input if you have written the command correctly. All alias commands are also taken into account. Especially the Git alias are very popular here.

enable oh-my-zsh syntax highlighting plugin

The oh-my-zsh syntax highlighting plugin has to be downloaded and installed additionally. This is unusual, because most oh-my-zsh plugins only need to be activated. But this can be done very easily with the following command. And once you have done that it is a very big relief and good support for your daily work with the terminal. This also brings a lot of fun and passion. 😉

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

This will properly check out the plugin directly into the oh-my-zsh plugin folder and can be easily activated in the .zshrc file.

plugins=( [plugins…] zsh-syntax-highlighting)

Once you have done that, you have to restart your terminal or open a new tab.

Conclusion oh-my-zsh Syntax Highlighting Plugin

The oh-my-zsh syntax highlighting plugin is also a real highlight. Besides the syntax highlighting in case of a misspelled command, which does not happen that often, the plugin also gives you more overview in the Command Line — CLI. You can clearly see the distinction between command and parameter. This also increases the effectiveness, because commands can be read faster. If you use this in conjunction with the VI-Mode plugin, you can work very effectively.

--

--