You are not logged in.

#1 2017-01-28 14:43:18

ryzion
Member
Registered: 2012-03-20
Posts: 95

highlight output pattern zsh

I'd like to highlight patterns like "error" or "FAILED" on my shell. Using zsh atm. Anyone knows a plugin that does that? I've only found input highlighting so far.

Offline

#2 2017-01-28 20:34:44

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: highlight output pattern zsh

Zsh has nothing to do with that, since that is output. you would need to capture the output, separate stderr&stdout, color the 'error' red merge the stream and output it to the terminal.
I have no recipe for you, but it might give you an idea where to go next, goodluck!

Offline

Board footer

Powered by FluxBB