Colorize ZSH Terminal Logs based on custom regex #11687
-
Hello, I am developing an application that displays LOGs in my zsh terminal. I'm looking for a zsh functionality or plugin that would allow me to colorize my logs according to a word present in the line. e.g. the regex "[DBG]" is present I want to colorize the line in green.... I have already tried zsh-syntax-highlighting but nothing conclusive. Thank you for your help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello I found the solution to my need. Here is the solution i used the generic colouriser of garabik : https://github.com/garabik/grc You need to install it and then create inside .grc a file custom_grc.conf and paste this :
Then you can use the command mycommand | grcat custom_grc.conf |
Beta Was this translation helpful? Give feedback.
Hello I found the solution to my need.
Here is the solution i used the generic colouriser of garabik : https://github.com/garabik/grc
You need to install it and then create inside .grc a file custom_grc.conf and paste this :
Then you can use the command
mycommand | grcat custom_grc.conf