- Notifications
You must be signed in to change notification settings - Fork8
stecman/composer-bash-completion-plugin
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is an experimental hack to addSymfony BASH auto complete to Composer via a plugin. It's a pretty slimy hack, but it works without editing Composer's code.
- Install the plugin:
composer global require stecman/composer-bash-completion-plugin dev-master- Generate code to register a completion hook for your shell and Composer configuration:
source $(composer config home --global)/vendor/stecman/composer-bash-completion-plugin/generate-hook- Add the registration code to your shell profile:
- If you're using BASH, copy the output to your
~/.bash_profile - If you're using ZSH, copy the output to your
~/.zshrc
- Reload your modified shell config (or open a new shell), and enjoy tab completion on Composer
This 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 withcomposer depends _completion, the plugin effectively reboots the application with the completion command added, and dropsdepends 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).
About
A hacky composer plugin to add bash completion without changing Composer code
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.
