colr icon indicating copy to clipboard operation
colr copied to clipboard

:art: colr colors strings, colorfully.

colr Build Status GitHub release

:art: colr colors strings, colorfully.

screencast

Usage

$ tail -F /var/log/nginx/access.log | colr POST GET 404 500 search

Erase colors:

If you want to erase colors from STDIN, you can use --erase option.

$ any-colorful-command | colr --erase

Install

deb:

Use dpkg-i-from-url

$ export COLR_VERSION=X.X.X
$ curl -L https://git.io/dpkg-i-from-url | bash -s -- https://github.com/k1LoW/colr/releases/download/v$COLR_VERSION/colr_$COLR_VERSION-1_amd64.deb

RPM:

$ export COLR_VERSION=X.X.X
$ yum install https://github.com/k1LoW/colr/releases/download/v$COLR_VERSION/colr_$COLR_VERSION-1_amd64.rpm

apk:

Use apk-add-from-url

$ export COLR_VERSION=X.X.X
$ curl -L https://git.io/apk-add-from-url | sh -s -- https://github.com/k1LoW/colr/releases/download/v$COLR_VERSION/colr_$COLR_VERSION-1_amd64.apk

homebrew tap:

$ brew install k1LoW/tap/colr

go install:

$ go install github.com/k1LoW/colr/cmd/[email protected]

manually:

Download binary from releases page