Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
ea7b886f
Unverified
Commit
ea7b886f
authored
Oct 17, 2018
by
Marc Cornellà
Committed by
GitHub
Oct 17, 2018
Browse files
composer: add README (#7291)
parents
1abf04cb
f8ca1464
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/composer/README.md
0 → 100644
View file @
ea7b886f
# composer
This plugin provides completion for
[
composer
](
https://getcomposer.org/
)
, 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.
```
zsh
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 --optimize-autoloader | 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 |
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment