Git Product home page Git Product logo

grc-rs's Introduction

Build Status

grc-rs

Description

Generic colouriser for the output for many programs (A port of grc + grcat to rust). grc must be installed as its configuration files are used.

Status

Colouring rules work as good as 'grc'. Replacement/skip/count not yet implemented.

Installation

Installation via cargo will give you the binary, but not the man page and zsh shell completion script.

cargo install grc-rs

From AUR:

yay -S grc-rs

Or manually, which will also install man page and zsh completions:

cargo build --release
sudo make install

Usage

Either create shell aliases for the command that you want colourised:

alias mount='grc-rs mount'

or use the --aliases option to generate a list. The brave can put this in ~/.bashrc or ~/.zshrc, but things may break.

eval $(grc-rs --aliases)

Configuration

Configuration files are in same format as grc/grcat. grc-rs supports reading from additional configuration, /etc/grc-rs.conf, ~/.grc-rs, and ~/.config/grc-rs/grc-rs. Colouring rules will be searched for in additional paths /usr/share/grc-rs, ~/.config/grc-rs and ~/.local/share/grc-rs.

To extend the existing configuration for a command that is already configured, simply add a new rule in ~/.config/grc-rs/grc-rs and have a unique conf.command. To replace existing rules for a known command, create ~/.config/grc-rs/conf.command and it will be used instead of the one from /usr/share/grc.

grc-rs's People

Contributors

larsch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

grc-rs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.