1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 17:50:07 +00:00
ohmyzsh/plugins/composer
Marc Cornellà 9181954255 fix(composer): autoload _cache_invalid for antigen compatibility
Antigen doesn't call `compinit` until the user prompt is about to be shown,
which means `_cache_invalid` isn't automatically autoloaded. This patch
fixes that, though we should work towards a better caching mechanism.

Fixes #9490
2020-12-11 16:54:22 +01:00
..
composer.plugin.zsh fix(composer): autoload _cache_invalid for antigen compatibility 2020-12-11 16:54:22 +01:00
README.md composer: fix documented aliases 2020-05-11 20:10:36 +02:00

composer

This plugin provides completion for composer, as well as aliases for frequent composer commands. It also adds Composer's global binaries to the PATH, using Composer if available.

To use it add composer to the plugins array in your zshrc file.

plugins=(... composer)

Aliases

Alias Command Description
c composer Starts composer
csu composer self-update Updates composer to the latest version
cu composer update Updates composer dependencies and composer.lock file
cr composer require Adds new packages to composer.json
crm composer remove Removes packages from composer.json
ci composer install Resolves and installs dependencies from composer.json
ccp composer create-project Create new project from an existing package
cdu composer dump-autoload Updates the autoloader
cdo composer dump-autoload -o Converts PSR-0/4 autoloading to classmap for a faster autoloader (good for production)
cgu composer global update Allows update command to run on COMPOSER_HOME directory
cgr composer global require Allows require command to run on COMPOSER_HOME directory
cgrm composer global remove Allows remove command to run on COMPOSER_HOME directory
cget curl -s https://getcomposer.org/installer Installs composer in the current directory
co composer outdated Shows a list of installed packages with available updates
cod composer outdated --direct Shows a list of installed packages with available updates which are direct dependencies