{"id":16616751,"url":"https://github.com/stecman/composer-bash-completion-plugin","last_synced_at":"2025-03-15T12:30:29.681Z","repository":{"id":19719415,"uuid":"22975145","full_name":"stecman/composer-bash-completion-plugin","owner":"stecman","description":"A hacky composer plugin to add bash completion without changing Composer code","archived":false,"fork":false,"pushed_at":"2023-09-29T20:43:46.000Z","size":40,"stargazers_count":79,"open_issues_count":3,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-26T03:23:59.758Z","etag":null,"topics":["bash-completion","completion","composer","composer-plugin","tab-completion","zsh-completion"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stecman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2014-08-15T02:03:12.000Z","updated_at":"2024-04-03T08:05:01.000Z","dependencies_parsed_at":"2024-06-21T14:23:07.260Z","dependency_job_id":null,"html_url":"https://github.com/stecman/composer-bash-completion-plugin","commit_stats":{"total_commits":29,"total_committers":4,"mean_commits":7.25,"dds":0.1724137931034483,"last_synced_commit":"9c7d6bbd2c09c3de5867597ce71a7611dc9c8727"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stecman%2Fcomposer-bash-completion-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stecman%2Fcomposer-bash-completion-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stecman%2Fcomposer-bash-completion-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stecman%2Fcomposer-bash-completion-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stecman","download_url":"https://codeload.github.com/stecman/composer-bash-completion-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243730842,"owners_count":20338724,"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-completion","completion","composer","composer-plugin","tab-completion","zsh-completion"],"created_at":"2024-10-12T02:14:08.125Z","updated_at":"2025-03-15T12:30:28.474Z","avatar_url":"https://github.com/stecman.png","language":"PHP","readme":"# BASH/ZSH auto-complete plugin for Composer\n\nThis is an experimental hack to add [Symfony BASH auto complete](https://github.com/stecman/symfony-console-completion) to Composer via a plugin. It's a pretty slimy hack, but it works without editing Composer's code.\n\n![Composer BASH completion](https://i.imgur.com/MoDWkby.gif)\n\n## Installation\n\n1. Install the plugin:\n\n  ```\n  composer global require stecman/composer-bash-completion-plugin dev-master\n  ```\n\n2. Generate code to register a completion hook for your shell and Composer configuration:\n\n  ```\n  source $(composer config home --global)/vendor/stecman/composer-bash-completion-plugin/generate-hook\n  ```\n\n3. Add the registration code to your shell profile:\n\n  - If you're using BASH, copy the output to your `~/.bash_profile`\n  - If you're using ZSH, copy the output to your `~/.zshrc`\n\n4. Reload your modified shell config (or open a new shell), and enjoy tab completion on Composer\n\n## Explanation\n\nThis hacky plugin injects an additional command into the Composer application at runtime. When the plugin in this package is activated and the command line starts with `composer depends _completion`, the plugin effectively reboots the application with the completion command added, and drops `depends` from the command line so that `_completion` becomes the command argument. This used to work without piggy-backing on a command, but an update to composer stopped the original method working (#8).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstecman%2Fcomposer-bash-completion-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstecman%2Fcomposer-bash-completion-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstecman%2Fcomposer-bash-completion-plugin/lists"}