my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
2.9 KiB

3 years ago
  1. # composer
  2. This plugin provides completion for [composer](https://getcomposer.org/), as well as aliases
  3. for frequent composer commands. It also adds Composer's global binaries to the PATH, using
  4. Composer if available.
  5. To use it add `composer` to the plugins array in your zshrc file.
  6. ```zsh
  7. plugins=(... composer)
  8. ```
  9. Original author: Daniel Gomes <me@danielcsgomes.com>
  10. ## Aliases
  11. | Alias | Command | Description |
  12. | ------ | ---------------------------------- | --------------------------------------------------------------------------------------- |
  13. | `c` | `composer` | Starts composer |
  14. | `ccp` | `composer create-project` | Create new project from an existing package |
  15. | `cdo` | `composer dump-autoload -o` | Converts PSR-0/4 autoloading to classmap for a faster autoloader (good for production) |
  16. | `cdu` | `composer dump-autoload` | Updates the autoloader |
  17. | `cget` | `curl -s <installer> \| php` | Installs composer in the current directory |
  18. | `cgr` | `composer global require` | Allows require command to run on COMPOSER_HOME directory |
  19. | `cgrm` | `composer global remove` | Allows remove command to run on COMPOSER_HOME directory |
  20. | `cgu` | `composer global update` | Allows update command to run on COMPOSER_HOME directory |
  21. | `ci` | `composer install` | Resolves and installs dependencies from `composer.json` |
  22. | `co` | `composer outdated` | Shows a list of installed packages with available updates |
  23. | `cod` | `composer outdated --direct` | Shows a list of installed packages with available updates which are direct dependencies |
  24. | `cr` | `composer require` | Adds new packages to `composer.json` |
  25. | `crm` | `composer remove` | Removes packages from `composer.json` |
  26. | `cs` | `composer show` | Lists available packages, with optional filtering |
  27. | `csu` | `composer self-update` | Updates composer to the latest version |
  28. | `cu` | `composer update` | Updates composer dependencies and `composer.lock` file |
  29. | `cuh` | `composer update -d <config-home>` | Updates globally installed packages |