stecman/composer-bash-completion-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stecman/composer-bash-completion-plugin

Composer 安装命令:

composer require stecman/composer-bash-completion-plugin

包简介

BASH/ZSH auto-complete plugin for Composer

README 文档

README

This is an experimental hack to add Symfony BASH auto complete to Composer via a plugin. It's a pretty slimy hack, but it works without editing Composer's code.

Composer BASH completion

Installation

  1. Install the plugin:
composer global require stecman/composer-bash-completion-plugin dev-master
  1. 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
  1. 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
  1. Reload your modified shell config (or open a new shell), and enjoy tab completion on Composer

Explanation

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 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).

统计信息

  • 总下载量: 10.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 81
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 79
  • Watchers: 5
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固