{"id":18909969,"url":"https://github.com/jonasbn/bash_completion_dzil","last_synced_at":"2026-03-07T12:30:19.474Z","repository":{"id":22367199,"uuid":"96045981","full_name":"jonasbn/bash_completion_dzil","owner":"jonasbn","description":"Basic bash completion for dzil (Dist::Zilla)","archived":false,"fork":false,"pushed_at":"2025-01-20T20:45:46.000Z","size":74,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T05:27:19.307Z","etag":null,"topics":["bash","bash-completion","dist-zilla","dzil","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}},"created_at":"2017-07-02T20:00:23.000Z","updated_at":"2025-01-20T20:45:49.000Z","dependencies_parsed_at":"2024-11-08T09:40:15.832Z","dependency_job_id":"c5bf65bd-75b5-48b8-aea4-7cdc2d29d409","html_url":"https://github.com/jonasbn/bash_completion_dzil","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_dzil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_dzil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_dzil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fbash_completion_dzil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonasbn","download_url":"https://codeload.github.com/jonasbn/bash_completion_dzil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239898462,"owners_count":19715212,"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":["bash","bash-completion","dist-zilla","dzil","hacktoberfest","shell"],"created_at":"2024-11-08T09:38:49.899Z","updated_at":"2026-03-07T12:30:19.428Z","avatar_url":"https://github.com/jonasbn.png","language":"Shell","readme":"# Dist::Zilla Bash Completion\n\nBasic tab completion for [dzil](http://dzil.org/), the Perl distribution power-tool for CPAN distribution.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Introduction\n\nThe completion implementation requires `dzil` to be installed (of course), it uses `dzil` built-in `commands` command to extract what is available and makes this accessible for tab completion.\n\nIn addition installed Dist::Zilla command plugins are automatically exposed by `dzil` meaning that tab completions are also automatically supported.\n\nThis is based on Dist::Zilla 6.009.\n\n## Usage\n\n```bash\n$ dzil \u003ctab\u003e\nadd    build    commands   help    listdeps   nop   run   smoke   authordeps   clean  install  new        release setup      test\n```\n\nIf you have additional Dist::Zilla::App::Command plugins installed this will be discovered by Dist::Zilla and hence listed by this utility automatically.\n\nExample: [Dist::Zilla::App::Command::cover](https://metacpan.org/pod/Dist::Zilla::App::Command::cover)\n\n```bash\n$ dzil \u003ctab\u003e\nadd    build    commands   help    listdeps   nop   run   smoke   authordeps   clean  install  new        release setup      cover test\n```\n\n`listdeps` offer the additional completions:\n\n```bash\n$ dzil listdeps \u003ctab\u003e\n--missing --develop --author --missing --requires --no-requires --recommends --no-recommends --suggests --no-suggests --versions --cpanm-versions --json --omit-cores\n```\n\n`authordeps` offer the additional completions:\n\n```bash\n$ dzil authordeps \u003ctab\u003e\n--root --missing --versions\n```\n\n## Download\n\n```bash\n$ curl https://raw.githubusercontent.com/jonasbn/bash_completion_dzil/master/dzil \u003e dzil\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 dzil ~/.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 dzil /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\n\nFormula: `bash-completions`.\n\n```bash\ncp dzil /usr/local/etc/bash_completion.d/\n```\n\nAnd to activate right away:\n\n```bash\nsource  /usr/local/etc/bash_completion.d/dzil\n```\n\n#### `bash` 4\n\nFormula: `bash-completions2`.\n\n```bash\ncp dzil /usr/local/share/bash-completion/completions/\n```\n\nAnd to activate right away:\n\n```bash\nsource /usr/local/share/bash-completion/completions/dzil\n```\n\n## Motivation\n\n`dzil` is an important tool in my toolchain, so I wanted to have easy access to all the options available.\n\n## History\n\n- 1.0.0\n  - Initial version working with `bash` version 4.\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\nGood two-part article, \"An Introduction to Bash Completion\": [Part 1](https://debian-administration.org/article/316/An_introduction_to_bash_completion_part_1) and [Part 2](https://debian-administration.org/article/317/An_introduction_to_bash_completion_part_2).\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 2017-2018\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fbash_completion_dzil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasbn%2Fbash_completion_dzil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fbash_completion_dzil/lists"}