{"id":18909976,"url":"https://github.com/jonasbn/bash_completion_ack","last_synced_at":"2025-08-23T10:33:40.469Z","repository":{"id":17649280,"uuid":"58401671","full_name":"jonasbn/bash_completion_ack","owner":"jonasbn","description":"Experimental bash tab completion for ack, the CLI tool going beyond grep","archived":false,"fork":false,"pushed_at":"2025-06-24T03:33:35.000Z","size":74,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-23T06:10:03.383Z","etag":null,"topics":["ack","bash","bash-completion","hacktoberfest","shell"],"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/jonasbn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2016-05-09T19:15:50.000Z","updated_at":"2025-06-24T03:33:39.000Z","dependencies_parsed_at":"2024-06-05T20:47:52.413Z","dependency_job_id":"ba8697f8-7473-4e78-a708-5ebc9c315e92","html_url":"https://github.com/jonasbn/bash_completion_ack","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jonasbn/bash_completion_ack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_ack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_ack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_ack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_ack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonasbn","download_url":"https://codeload.github.com/jonasbn/bash_completion_ack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_ack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746657,"owners_count":24813575,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ack","bash","bash-completion","hacktoberfest","shell"],"created_at":"2024-11-08T09:38:51.833Z","updated_at":"2025-08-23T10:33:40.408Z","avatar_url":"https://github.com/jonasbn.png","language":"Shell","readme":"# Ack Bash Completion\n\n\u003c!-- markdownlint-disable MD014 --\u003e\n\nExperimental tab completion for [ack](http://beyondgrep.com/), the CLI tool going beyond `grep`.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Usage\n\n```bash\n$ ack -\u003ctab\u003e\n--actionscript\n--ada\n--after-context\n--asm\n--asp\n--aspx\n--bar\n--batch\n--bazel\n--before-context\n--break\n--cathy\n--cc\n--cfmx\n--clojure\n--cmake\n--coffeescript\n--color\n--color-colno\n--color-filename\n--color-lineno\n--color-match\n--column\n--conf\n--context\n--count\n--cpp\n--csharp\n--css\n--dart\n--delphi\n--dump\n--elisp\n--elixir\n--elm\n--env\n--erlang\n--files-with-matches\n--files-without-matches\n--filter\n--flush\n--follow\n--fortran\n--go\n--groovy\n--group\n--gsp\n--haskell\n--heading\n--help\n--help-colors\n--help-rgb-colors\n--help-types\n--hh\n--hpp\n--html\n--ignore-case\n--ignore-dir\n--ignore-directory\n--ignore-file-r\n--invert-match\n--jade\n--java\n--js\n--json\n--jsp\n--known-types\n--kotlin\n--less\n--lisp\n--literal\n--lua\n--make\n--man\n--markdown\n--match\n--matlab\n--mojo\n--no-filename\n--no-ignore-case\n--no-recurse\n--nobreak\n--nocolor\n--nocolumn\n--noenv\n--nofilter\n--nofollow\n--nogroup\n--noheading\n--noignore-dir\n--noignore-directory\n--nopager\n--nosmart-case\n--nounderline\n--objc\n--objcpp\n--ocaml\n--output\n--pager\n--passthru\n--pconf\n--perl\n--perltest\n--php\n--plone\n--pod\n--print0\n--proximate\n--purescript\n--python\n--rake\n--range-end\n--range-start\n--recurse\n--rr\n--rst\n--ruby\n--rust\n--sass\n--scala\n--scheme\n--shell\n--show-types\n--smalltalk\n--smart-case\n--smarty\n--sort-files\n--sql\n--stylus\n--svg\n--swift\n--tcl\n--tex\n--thpppt\n--toml\n--ts\n--ttml\n--type\n--underline\n--vb\n--verilog\n--version\n--vhdl\n--vim\n--with-filename\n--word-regexp\n--xml\n--yaml\n-1\n-A\n-B\n-c\n-C\n-f\n-g\n-h\n-H\n-i\n-I\n-k\n-l\n-L\n-n\n-o\n-p\n-Q\n-R\n-s\n-S\n-t\n-T\n-v\n-w\n-x\n```\n\nIt also supports definitions from your `$HOME/.ackrc`, so the above list might look different in your local environment.\n\nThe example `ackrc` based on [my TIL](https://github.com/jonasbn/til/blob/master/ack/define_a_custom_search_filetype_scope.md)\n\n```ini\n--type-set=mojo=.css,.pl,.pm,.html,.js,.tt,.ep,.conf\n--type-set=conf=.conf\n--type-set=conf=.pconf\n```\n\nWould work as follows, listing your custom types among ALL of the other options:\n\n```bash\n$ ack -\u003ctab\u003e\n--mojo --conf --pconf\n```\n\n```bash\n$ ack \u003ctab\u003e\n.editorconfig                          CONTRIBUTING.md                        bash_completion_ack.code-workspace\n.git/                                  LICENSE                                bash_completion_ack.sublime-project\n.gitattributes                         README.md                              bash_completion_ack.sublime-workspace\n.gitignore                             ack\n```\n\nList contents of directory as default for `bash`.\n\nIf you _tab_ after your completion has been made the contents of the current directory is displayed:\n\n```bash\n$ ack --mojo \u003ctab\u003e\n.editorconfig                          CONTRIBUTING.md                        bash_completion_ack.code-workspace\n.git/                                  LICENSE                                bash_completion_ack.sublime-project\n.gitattributes                         README.md                              bash_completion_ack.sublime-workspace\n.gitignore                             ack\n```\n\n## Download\n\n```bash\ncurl https://raw.githubusercontent.com/jonasbn/bash_completion_ack/master/ack \u003e ack\n```\n\n## Installation\n\nWhen downloaded you have to install the completion implementation. Where your completions are located might vary.\n\n### Personal\n\nIf you want to install them for your personal use, do the following.\n\nCreate the file: `~/.bash_completion`, containing the code below:\n\n```bash\nfor bcfile in ~/.bash_completion.d/* ; do\n  . $bcfile\ndone\n```\n\nRef: [ServerFault.com: _Standard place for user defined bash_completion.d scripts?_](https://serverfault.com/questions/506612/standard-place-for-user-defined-bash-completion-d-scripts)\n\nCreate a directory for your completions:\n\n```bash\nmkdir ~/.bash_completion.d\n```\n\nCopy your completions into the newly created directory:\n\n```bash\ncp ack ~/.bash_completion.d/\n```\n\nStart a new shell and you should be good to go.\n\n### System-wide example from Debian\n\nBased on [an introduction](https://debian-administration.org/article/316/An_introduction_to_bash_completion_part_1) to `bash` completions on Debian.\n\n```bash\nsudo cp ack /etc/bash_completion.d/\n```\n\n### System-wide example from OSX\n\nThis assumes you are using **Homebrew**\n\nDo note that paths vary based on whether you are using `bash` 3 or 4\n\n#### `bash` 3 (Formula: `bash-completions`)\n\n```bash\ncp ack /usr/local/etc/bash_completion.d/\n```\n\nAnd to activate right away:\n\n```bash\nsource  /usr/local/etc/bash_completion.d/ack\n```\n\n#### `bash` 4 (Formula: `bash-completions2`)\n\n```bash\ncp ack /usr/local/share/bash-completion/completions/\n```\n\nAnd to activate right away:\n\n```bash\nsource /usr/local/share/bash-completion/completions/ack\n```\n\n## Motivation\n\nThe programmatic capabilities discovered while implementing my first `bash` completions intrigued me. This is a highly experimental feature, which nevertheless was lots of fun to implement.\n\n## History\n\n- 2.2.1\n  - Bug fix release, addressing issue introduced in 2.2.0, making the defaults not work\n\n- 2.2.0\n  - Major contribution from @rpgoldman expanding the capabilities of this tool extensively\n\n- 2.1.0\n  - Minor adjustment to behaviour, post completions, the contents of the current directory is listed\n\n- 2.0.0\n  - Initial version working with `bash` version 4.\n  - Change to behaviour, `-` have to be entered for detected options to be listed\n\n- 1.0.0\n  - Initial version working with `bash` version 3.\n\n## See Also\n\nA more elaborate piece of documentation on `bash` completions is available from **The Linux Documentation Project** in the [Advanced Bash-Scripting Guide](http://tldp.org/LDP/abs/html/tabexpansion.html).\n\nFrom the [GNU Documentation](https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html).\n\nPlease note that this experimental implementation has only been tested with `bash` version 3 (see version 1.0.0).\n\nVersions after version 1.0.0 have been tested with `bash` version 4.\n\nThe most comprehensive collection of `bash` completions I have come across is [the one](https://github.com/scop/bash-completion) from the **Debian Linux distribution**. It is also the one offered for OSX via **Homebrew**.\n\n## License\n\nThis is made available under the MIT license, see separate license file.\n\n## Copyright\n\n:copyright: jonasbn 2016-2022\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fbash_completion_ack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasbn%2Fbash_completion_ack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fbash_completion_ack/lists"}