{"id":14008063,"url":"https://github.com/iann0036/censor-shell","last_synced_at":"2025-10-06T17:53:32.175Z","repository":{"id":69948199,"uuid":"360498144","full_name":"iann0036/censor-shell","owner":"iann0036","description":"Censors or hides shell / Bash / console output based on defined patterns - great for hiding secrets in demos!","archived":false,"fork":false,"pushed_at":"2021-04-22T15:38:04.000Z","size":1086,"stargazers_count":41,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T17:04:59.690Z","etag":null,"topics":["asciinema","bash","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","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/iann0036.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}},"created_at":"2021-04-22T11:41:28.000Z","updated_at":"2023-01-12T20:05:18.000Z","dependencies_parsed_at":"2023-02-27T09:00:31.547Z","dependency_job_id":null,"html_url":"https://github.com/iann0036/censor-shell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iann0036%2Fcensor-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iann0036%2Fcensor-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iann0036%2Fcensor-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iann0036%2Fcensor-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iann0036","download_url":"https://codeload.github.com/iann0036/censor-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251722825,"owners_count":21633023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["asciinema","bash","shell"],"created_at":"2024-08-10T11:01:11.809Z","updated_at":"2025-10-06T17:53:27.157Z","avatar_url":"https://github.com/iann0036.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# censor-shell\n\n![](https://github.com/iann0036/iann0036/blob/master/static/censor-shell.gif?raw=true)\n\n## Installation\n\n```\ngo install\n```\n\n## Usage\n\nMake the file `~/.censor-shell` as an INI file with the following content:\n\n```\n[nameofmyreplacement]\npattern = badword\nreplacement = goodword\n\n[anotherpattern]\npattern = abc([a-z]+)ghi\nreplacement = zyx${1}tsr\n```\n\nYou can specify any amount of replacement rules as you like. Patterns and replacement follow standard Go [regexp](https://golang.org/pkg/regexp/) formats.\n\nNow open a new shell and execute the `censor-shell` command. You'll be able to see that all outputs are replaced dynamically:\n\n```\n\u003e echo badword\ngoodword\n\u003e echo abcdefghi\nzyxdeftsr\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiann0036%2Fcensor-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiann0036%2Fcensor-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiann0036%2Fcensor-shell/lists"}