{"id":23097087,"url":"https://github.com/alexcoder04/shclrz","last_synced_at":"2026-04-08T22:32:07.361Z","repository":{"id":114989164,"uuid":"410517903","full_name":"alexcoder04/shclrz","owner":"alexcoder04","description":"Colored output in the shell made simple","archived":false,"fork":false,"pushed_at":"2025-04-04T20:01:40.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T20:11:50.813Z","etag":null,"topics":["bash","cli","color","colorization","colors","command-line","linux","shell","shell-script","terminal","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexcoder04.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}},"created_at":"2021-09-26T10:16:43.000Z","updated_at":"2025-04-04T20:01:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"40192e2a-cf97-4c22-96cc-8adc6faf7e8d","html_url":"https://github.com/alexcoder04/shclrz","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alexcoder04/shclrz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcoder04%2Fshclrz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcoder04%2Fshclrz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcoder04%2Fshclrz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcoder04%2Fshclrz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcoder04","download_url":"https://codeload.github.com/alexcoder04/shclrz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcoder04%2Fshclrz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["bash","cli","color","colorization","colors","command-line","linux","shell","shell-script","terminal","utility"],"created_at":"2024-12-16T22:51:12.793Z","updated_at":"2026-04-08T22:32:07.343Z","avatar_url":"https://github.com/alexcoder04.png","language":"Shell","readme":"\n# shclrz - shell colorizer\n\n**Note:**\nThere is a more heavy version of this project with more features written in Go.\nCheck it out: [alexcoder04/golored](https://github.com/alexcoder04/golored).\n\nshclrz (as in **SH**ell **C**o**L**o**R**i**Z**er) is a simple shell script with\nthe goal to simplify creating colored output in the shell. You don't need to\nremember the ANSI escape sequences anymore, you can just pipe your text into\n`shclrz` and the output will be colored.\n\n## Usage\n\n### As standalone program\n\n```\nshclrz [OPTIONS]\n```\n\n| option           | alternative                 | function                  |\n|------------------|-----------------------------|---------------------------|\n| `-h`             | `--help`                    | print help                |\n| `-v`             | `--version`                 | print program version     |\n| `-i`             | `--info`                    | print color codes         |\n| `-s SOURCE_FILE` | `--source-file SOURCE_FILE` | read from file            |\n| `-f COLOR`       | `--foreground COLOR`        | specify foreground color  |\n| `-b COLOR`       | `--background COLOR`        | specify background color  |\n| `-F FORMATTING`  | `--formatting OPTION`       | specify formatting option |\n\n#### Examples:\n\n```\nshclrz -f red -F underline \u003cfile.txt\n```\n\nOutputs the content of file.txt underlined and with red foreground.\n\n```\nls | shclrz -b blue\n```\n\nColors the output of ls with blue background.\n\n#### List of colors:\n\n`black`, `blue`, `red`, `magenta`, `green`, `cyan`, `yellow`, `white`\n\n#### List of formatting options:\n\n`bold`, `dim`, `italic`, `underline`\n\n### As a shell library\n\nYou can also `source` shclrz. In that case, it will define a `colorize` function, into which you can pipe text which then will be colored.\nYou can control the formatting with following variables: `$SHCLRZ_FOREGOUND`, `$SHCLRZ_BACKGROUND`, `$SHCLRZ_FORMATTING`.\nThese variables have to be set to the number of the color/options; these numbers are available in `shclrz --info`.\n\nAlso, it defines variables for all the colors and formatting options. Example:\n\n```sh\nsource shclrz\n\n# red foreground\necho -e \"${FG_RED}Hello World${RESET}\" # -e flag is only necessary for Bash, not for POSIX shells\n# blue background\necho -e \"${BG_BLUE}Hello World${RESET}\"\n# bold text\necho -e \"${FRM_BOLD}Hello World${RESET}\"\n```\n\n#### List of variables\n\n`FG_BLACK`, `FG_RED`, `FG_GREEN`, `FG_YELLOW`, `FG_BLUE`, `FG_MAGENTA`, `FG_CYAN`, `FG_WHITE`\n\n`BG_BLACK`, `BG_RED`, `BG_GREEN`, `BG_YELLOW`, `BG_BLUE`, `BG_MAGENTA`, `BG_CYAN`, `BG_WHITE`\n\n`FRM_BOLD`, `FRM_DIM`, `FRM_ITALIC`, `FRM_UNDERLINE`\n\n`RESET`\n\n## Installation\n\n### Arch and Arch-based distros\n\nThis project is available on the AUR as [shclrz](https://aur.archlinux.org/packages/shclrz). Either install it manually or use an AUR helper of your choice.\n\n### Other distros\n\n1. Download the latest version of shclrz from the [releases page](https://github.com/alexcoder04/shclrz/releases/latest).\n2. `tar xf shclrz-*.tar.gz`\n3. `sudo make install`\n\n### Uninstallation\n\nOn Arch-based distros:\n\n```sh\nsudo pacman -R shclrz`\n```\n\nOn other distros:\n```sh\nsudo rm -rfv /usr/bin/shclrz /usr/share/doc/shclrz /usr/share/licenses/shclrz /usr/share/man/man1/shclrz.1\n```\n\n## How do I pronounce shclrz?\n\nFinally we have a program that is more difficult to pronounce as\n[sxhkd](https://github.com/baskerville/sxhkd)! However just say \"shell\ncolorizer\", that's easier...\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcoder04%2Fshclrz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcoder04%2Fshclrz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcoder04%2Fshclrz/lists"}