Stream Coloriser¶
strec allows to colorise a stream (like stdout
or stderr
) by mapping
regular expression groups to color names.
The project was originally inspired by garabik/grc.
Possible Use-Cases¶
Colorise log-files during monitoring:
tail -f /var/log/apache/access.log | strec -c /path/to/apache-colors.yml
Apply coloring rules to existing commands:
strec -- ls -l
Alias existing commands with their colorised wrapper:
alias ls="strec -- ls"
Screenshots¶
A python setup session |
|
---|---|
Before |
After |
Simple aptitude search |
|
---|---|
Before |
After |
Apache access_log |
|
---|---|
Before |
After |