|
|
|
|
|
by lobster_johnson
4756 days ago
|
|
Really? grcat/grc's configs are very simple. For example, this is the config for colorizing diffs: regexp=^\+(.*$)
colours=bold green
count=more
=======
regexp=^\-(--.+$|[^\-].*$|$)
colours=bold red
count=more
========
regexp=^\>([^\>].*|$)
colours=bold green
count=more
=======
regexp=^\<([^\<].*|$)
colours=bold red
count=more
=======
regexp=^@@ .* @@$
colours=magenta
count=more
I agree that colout works better for ad-hoc stuff.You should consider inverting the way it's invoked, though, to be more like grc, otherwise you can't reliably use colout in an alias (as pointed out elsewhere in this thread). |
|