{"id":35788175,"url":"https://github.com/lazywalker/rgrc","last_synced_at":"2026-02-11T10:02:47.665Z","repository":{"id":325668828,"uuid":"1101996074","full_name":"lazywalker/rgrc","owner":"lazywalker","description":"rgrc - Rusty Generic Colouriser - just like grc but fast","archived":false,"fork":false,"pushed_at":"2026-01-15T14:03:49.000Z","size":494,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-15T15:29:53.559Z","etag":null,"topics":["cli","grc","utility"],"latest_commit_sha":null,"homepage":"https://lazywalker.github.io/rgrc/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazywalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-22T16:17:47.000Z","updated_at":"2026-01-15T14:03:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lazywalker/rgrc","commit_stats":null,"previous_names":["lazywalker/rgrc"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/lazywalker/rgrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywalker%2Frgrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywalker%2Frgrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywalker%2Frgrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywalker%2Frgrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazywalker","download_url":"https://codeload.github.com/lazywalker/rgrc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywalker%2Frgrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28779044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T11:46:04.308Z","status":"ssl_error","status_checked_at":"2026-01-26T11:46:02.664Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","grc","utility"],"created_at":"2026-01-07T07:22:46.589Z","updated_at":"2026-02-11T10:02:47.658Z","avatar_url":"https://github.com/lazywalker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rgrc - Rusty Generic Colouriser\n\n\u003c!-- Repository badges --\u003e\n\n[![Rust](https://img.shields.io/badge/rust-2024--edition-orange)](https://www.rust-lang.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![CI](https://github.com/lazywalker/rgrc/actions/workflows/ci.yml/badge.svg)](https://github.com/lazywalker/rgrc/actions)\n[![crates.io](https://img.shields.io/crates/v/rgrc.svg)](https://crates.io/crates/rgrc)\n[![docs.rs](https://docs.rs/rgrc/badge.svg)](https://docs.rs/rgrc)\n[![codecov](https://codecov.io/gh/lazywalker/rgrc/branch/master/graph/badge.svg)](https://codecov.io/gh/lazywalker/rgrc)\n[![Dependabot](https://img.shields.io/badge/Dependabot-enabled-brightgreen.svg)](https://github.com/lazywalker/rgrc/network/updates)\n[![Maintenance](https://img.shields.io/maintenance/yes/2025)](https://github.com/lazywalker/rgrc)\n\nA fast, Rust-based command-line tool that colorizes the output of other commands using regex-based rules. Drop-in replacement for `grc` with better performance.\n\n## Features\n\n- **Fast**: 10x faster than original grc\n- **Rich Colorization**: ANSI colors with count/replace support\n- **Compatible**: Works with existing grc configuration files\n- **Shell Integration**: Auto-generates aliases\n- **80+ Commands**: Pre-configured for common tools\n- **Smart Regex**: Hybrid engine with optional fancy-regex support\n- **Lightweight**: Minimal dependencies (2 core deps)\n\n## Quick Start\n\n### Installation\n\n**Shell (curl):**\n\n```bash\ncurl -sS https://raw.githubusercontent.com/lazywalker/rgrc/master/script/install.sh | sh\n```\n\n**Cargo:**\n\n```bash\ncargo install rgrc\n```\n\n**Homebrew:**\n\n```bash\nbrew tap lazywalker/rgrc\nbrew install rgrc\n```\n\n**Arch Linux:**\n\n```bash\nyay -S rgrc\n```\n\n**Alpine Linux:**\n\n```bash\n# Enable the testing repository (add edge testing)\ndoas cp /etc/apk/repositories /etc/apk/repositories.bak\necho \"http://dl-cdn.alpinelinux.org/alpine/edge/testing\" | doas tee -a /etc/apk/repositories\ndoas apk update\n\n# Install rgrc from the testing repository\ndoas apk add rgrc\n```\n\n### Usage\n\n```bash\n# Colorize any command\nrgrc ping -c 4 google.com\nrgrc docker ps\nrgrc df -h\n\n# Set up aliases (recommended)\necho 'eval \"$(rgrc --aliases)\"' \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n\n# Then use commands directly\nping -c 4 google.com  # automatically colorized\ndocker ps             # automatically colorized\n```\n\n## Supported Commands\n\n**System**: `df`, `free`, `ps`, `top`, `vmstat`, `iostat`, `uptime`, `mount`\n**Network**: `ping`, `traceroute`, `netstat`, `ss`, `ip`, `curl`, `dig`\n**Development**: `gcc`, `make`, `docker`, `kubectl`, `git`, `mvn`, `go`\n**Files**: `ls`, `find`, `du`, `fdisk`, `lsof`, `stat`\n\n[See full list in share/ directory](share/)\n\n## Options\n\n```bash\nUsage: rgrc [OPTIONS] COMMAND [ARGS...]\n\nOptions:\n  --color, --colour    Override color output (on|off|auto)\n  --aliases            Output shell aliases for available binaries\n  --all-aliases        Output all shell aliases\n  --except CMD,..      Exclude commands from alias generation\n  --completions SHELL  Print shell completion script for SHELL (bash|zsh|fish|ash)\n  --flush-cache        Flush and rebuild cache directory\n  --config, -c NAME    Explicit config file name (e.g., df to load conf.df)\n  --help, -h           Show this help message\n  --version, -V        Show installed rgrc version and exit\n```\n\n## Configuration\n\n### Custom Rules\n\nCreate `~/.config/rgrc/conf.mycommand`:\n\n```\nregexp=^ERROR\ncolours=red,bold\n\nregexp=^WARNING\ncolours=yellow\n\nregexp=^INFO\ncolours=green\n```\n\nAdd to `~/.rgrc`:\n\n```\nmycommand\nconf.mycommand\n```\n\n### Shell Completions\n\n```bash\n# Bash\nrgrc --completions bash \u003e /etc/bash_completion.d/rgrc\n\n# Zsh\nrgrc --completions zsh \u003e ~/.zfunc/_rgrc\n\n# Fish\nrgrc --completions fish \u003e ~/.config/fish/completions/rgrc.fish\n```\n\n## Advanced Features\n\n### Count/Replace\n\n```\n# Match only once per line\nregexp=^\\s*#\ncolours=cyan\ncount=once\n\n# Replace matched text (with backreferences)\nregexp=(ERROR|WARN|INFO)\ncolours=red,yellow,green\nreplace=[\\1]\n\n# Stop processing after match\nregexp=^FATAL\ncolours=red,bold\ncount=stop\n```\n\n**Count options**: `once`, `more` (default), `stop`\n**Replace**: Supports `\\1`, `\\2`, etc.\n\n## License\n\nMIT - see [LICENSE](LICENSE) for details.\n\n## Credits\n\nInspired by [grc](https://github.com/garabik/grc) by Radovan Garabík and [grc-rs](https://github.com/larsch/grc-rs) by Lars Christensen.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazywalker%2Frgrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazywalker%2Frgrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazywalker%2Frgrc/lists"}