rgrc(1)
okay bestie, pull up a chair π
you're reading rgrc(1) from the General Commands Manual β yes, that one. let's get into it.
π NAME π
rgrc β Rusty Generic Colouriser π¦
β¨ SYNOPSIS β¨
rgrc [options] COMMAND [args] ...
πΈ DESCRIPTION πΈ
so what does this icon actually do? rgrc runs any command you throw at it and colourises its output according to a set of rules. that's the whole vibe. the rules get imported from grc and grcat configuration files. slay. β¨
π OPTIONS π
here's the full menu, no cap, nothing skipped:
--helpβ shows you a lil summary of the options. classic.--aliasesβ spits out a list of shell commands that generate aliases for the binaries that are supported and installed. π«Ά--all-aliasesβ same energy but for all supported binaries, installed or not.--except=alias[,alias[,...]]β a list of aliases to leave out of the shell commands thatβaliasesorβall-aliasesgenerate. it's the "not you" list π--color=[on,off,auto]β turn colour output on or off. default isauto. π¨--completions=SHELLβ prints a shell completion script forSHELL. supported:bash,zsh,fish,ash.--flush-cacheβ flushes and rebuilds the embedded configuration cache. heads up: only available when built withembed-configs.--config,-c NAMEβ explicit config file name (e.g.,dfto loadconf.df).--version,-Vβ prints the installedrgrcversion and dips. βοΈ--verbose[=LEVEL],-v,-vvβ enables rule-level debug output. heads up: only available when the binary is built with thedebugfeature. if you give it with no value, it behaves like--verbose=1. here are the debug levels, bestie:--verbose[=1]or-v(Basic): shows the matched rules count and the style count for each line.- format:
[Line N] β Matched M rule(s): #R (S style(s)), ...
- format:
--verbose=2or-vv(Verbose): shows the detailed matching info, including:- rule regex patterns
- matched text with capture groups (space-separated)
- applied styles for each capture group
π¦ CONFIGURATION FILES π¦
rgrc reads its config from all of these locations (same format as rgrc.conf), if they're there. all matching rules get read and used β it's not a pick-one situation, it's a whole group chat. π¬
~/.rgrc
~/.config/rgrc/rgrc.conf
/usr/local/etc/rgrc.conf
/etc/rgrc.conf
~/.grc
~/.config/grc/grc.conf
/usr/local/etc/grc.conf
/etc/grc.conf
any grcat configuration (e.g. conf._xyz_) gets searched for in all of these locations. but here's the twist: only the first found file is read and used. π§
~/.config/rgrc
~/.local/share/rgrc
/usr/local/share/rgrc
/usr/share/rgrc
~/.config/grc
~/.local/share/grc
/usr/local/share/grc
/usr/share/grc
want to extend the existing config for a command that's already configured? easy. just add a new rule in ~/.rgrc and have a unique conf._command_. and if you want to replace the existing rules for a known command, create ~/.config/rgrc/conf._command_ and it'll be used instead of the one from /usr/share/grc. periodt. π
π SEE ALSO π
grc(1), grcat(1) β go give them a read too, they're literally the neighbours.
π AUTHOR π
Written by Lazy Walker l4zywalk3r@gmail.com β king behaviour fr fr. π
ngl that's the whole page bestie, go colourise something. π
mwah, kisses from the General Commands Manual β rgrc(1), page and section both, no date on this one, and that's the tea πβ¨
π¦ where this page comes from
- nixos 26.05: rgrc 0.6.12
- nixpkgs unstable: rgrc 0.6.35
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms