If you have ever used the CLI on network devices, you probably have ended up frustrated trying to make sense of the long lines of configuration. Although nowadays the use of editors like vim/Sublime/Vscode/Atom can provide some really useful syntax highlighting, you still can find yourself struggling to read the config files or outputs while you are on live devices.
In this post, I would like to share a config that has helped me to work more efficiently in the CLI by providing some very useful syntax highlighting.
Next, you can see examples of the syntax highlighting:
This setup uses a tool called chromaterm that basically matches some Regular Expressions and allows you to apply a style (Foreground/Background color) to the matched expression. It is super easy to use and read.
If you are interested in getting this config and information on how to use it, visit the following repository:
Hope you find it as useful as I do.
Have a great day and stay safe during this COVID-19 madness.