{"id":13448449,"url":"https://github.com/paoloantinori/hhighlighter","last_synced_at":"2025-04-04T21:09:38.841Z","repository":{"id":1026214,"uuid":"13011587","full_name":"paoloantinori/hhighlighter","owner":"paoloantinori","description":"A command line tool to highlight terms","archived":false,"fork":false,"pushed_at":"2024-03-04T05:35:46.000Z","size":6241,"stargazers_count":475,"open_issues_count":12,"forks_count":58,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-28T20:08:54.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/paoloantinori.png","metadata":{"files":{"readme":"README.asciidoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2013-09-22T10:21:29.000Z","updated_at":"2025-03-19T12:36:53.000Z","dependencies_parsed_at":"2024-10-28T13:07:12.994Z","dependency_job_id":"d7a63285-d2db-4f7c-bb28-12b52fd51b45","html_url":"https://github.com/paoloantinori/hhighlighter","commit_stats":{"total_commits":51,"total_committers":12,"mean_commits":4.25,"dds":0.4509803921568627,"last_synced_commit":"49125081764d57f1bb9c67b1d1a410b577c9d607"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paoloantinori%2Fhhighlighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paoloantinori%2Fhhighlighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paoloantinori%2Fhhighlighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paoloantinori%2Fhhighlighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paoloantinori","download_url":"https://codeload.github.com/paoloantinori/hhighlighter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249530,"owners_count":20908212,"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":[],"created_at":"2024-07-31T05:01:45.923Z","updated_at":"2025-04-04T21:09:38.821Z","avatar_url":"https://github.com/paoloantinori.png","language":"Shell","funding_links":[],"categories":["Shell","Command-Line Productivity"],"sub_categories":[],"readme":"== hhighlighter (or just h)\n\nA tiny utility to highlight multiple keywords with different colors\n\n- Idea: Paolo Antinori\n- Based on: *ack* - http://beyondgrep.com/ written by Andy Lester\n\n=== Description\n\n*h* (hhighlighter is just a name to help search engines) is a really tiny helper script meant to highlight keywords in the output of another *nix command:\n\n\n=== Requirements\n\n*h* is just a tiny facade in front of *ack* so you need to install it first.\n\n*What is ack?*\n\n*ack* is a tool like *grep*, optimized for programmers\n\nDesigned for programmers with large heterogeneous trees of source code, ack is written purely in portable Perl 5 and takes advantage of the power of Perl's regular expressions.\n\nsee: http://beyondgrep.com/\n\n*ack installation*\n\n*ack* is part of many major linux distributions so you should use your *package manager* to install it.\n\nsee: http://beyondgrep.com/install/\n\nIf you want to install *ack* in a *portable* way ( at the end ack is just a script ) you do it in this way:\n\n`curl https://beyondgrep.com/ack-2.16-single-file \u003e ~/bin/ack \u0026\u0026 chmod 0755 !#:3`\n\n\n=== Installation Instructions\n\n*h* is implemented as a function in *bash*.\n\nYou can install it in *one of these ways*:\n\n\n- copy and paste `h()` function in your `~/.bashrc`\n- configure your `~/.bashrc` to load the external script with `. /path/to/h.sh`\n\nor using Shinichi Okada's Awesome Package Manager - https://github.com/shinokada/awesome\n- `awesome -i paoloantinori/hhighlighter h`\n\n\n==== Zsh with Oh-My-Zsh\nJust run the following commands\n```bash\ncd $ZSH_CUSTOM/plugins\ngit clone git@github.com:paoloantinori/hhighlighter.git h\nmv h/h.sh h/h.plugin.zsh\n```\n\nthen add *h* to your plugins variable in your `~/.zshrc` file.\n```bash\nplugins=(\n  h\n  ...\n)\n```\n\n=== Platform Specifics\n\n*h* has currently been tested only on *bash* and *zsh* on *Linux* and *MacOSX*.\n\n=== Usage\n\n*h* is meant to consume the output of another Linux command via pipe\n\n```\n$ h\nusage: YOUR_COMMAND | h [-i] [-d] args...\n\t-i : ignore case\n\t-d : disable regexp\n\t-n : invert colors\n```\n\n\n=== Configuration\n\n.*h* supports overriding of its default colors via 2 environment variables: `H_COLORS_FG` and `H_COLORS_BG`.\nThese variables accepts a *comma separated values* set of http://perldoc.perl.org/Term/ANSIColor.html[Perl Term::ANSIColor] configuration entries. \nFor a table of RGB colors definition check this handy map:\n\n[[img-rgb]]\nimage::screenshots/rgb.png[caption=\"Figure 1: \", title=\"RGB Map, taken from https://github.com/jbnicolai/ansi-256-colors\", alt=\"RGB Colors Map\", width=\"25%\", height=\"25%\", link=\"https://github.com/jbnicolai/ansi-256-colors\"]\n\nEx.\n\n----\nexport H_COLORS_FG=\"bold black on_rgb520\",\"bold red on_rgb025\"\nexport H_COLORS_BG=\"underline bold rgb520\",\"underline bold rgb025\"\necho abcdefghi | h   a b c d\n----\n\n\n=== Examples\n\n.Default colors\n----\necho \"abcdefghijklmnopqrstuvxywz\" | h   a b c d e f g h i j k l\n----\n\n.Invert colors\n----\necho \"abcdefghijklmnopqrstuvxywz\" | h -n   a b c d e f g h i j k l\n----\n\n.Support for `tail` in follow mode\n----\ntail -F | h keyword1 keyword2\n----\n\n.Case Insensitive\n----\nmvn clean install | h -i failure success\n----\n\n.Disable regular expression\n----\ntail -F my.log | h -d org.apache.camel\n----\n\n.Highlight multiple keys with the same color (using regexp syntax)\n----\necho abcd | h 'b|d'\n----\n\n\n=== Screenshots\n\nimage:screenshots/rainbow.png[Rainbow,scaledwidth=\"75%\"]\n\n\nimage:screenshots/jboss-tail.png[Tail,scaledwidth=\"75%\"]\n\n\nimage:screenshots/maven.png[Maven,scaledwidth=\"75%\"]\n\n\nimage:screenshots/custom.png[Custom Colors,scaledwidth=\"75%\"]\n\n\n=== Demos\n\n[[img-gif]]\nimage::screenshots/asciicast.gif[caption=\"Ascii Cinema Gif\", title=\"Ascii Cinema Gif\", alt=\"Ascii Cinema Gif\",  link=\"screenshots/asciicast.gif\"]\n\n\n[[img-asciicast]]\nimage::https://asciinema.org/a/5cbw3rnhchsdnxcihtusf48vp.png[caption=\"Ascii Cinema: \", title=\"Ascii Cinema\", alt=\"Ascii Cinema Demo\",  link=\"https://asciinema.org/a/5cbw3rnhchsdnxcihtusf48vp\"]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaoloantinori%2Fhhighlighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaoloantinori%2Fhhighlighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaoloantinori%2Fhhighlighter/lists"}