1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00
Commit graph

28 commits

Author SHA1 Message Date
Marc Cornellà
70dfb6ef92
refactor(composer): improve completion and use official Zsh completion if available 2021-12-26 18:58:54 +01:00
Marc Cornellà
5f6b0ac7fb
style(composer): fix code and README style 2021-12-26 18:58:12 +01:00
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
Marc Cornellà
2b59d052ef composer: autoload cache functions
Fixes #9236
2020-09-29 12:06:39 +02:00
Gilles
2ecf2846cd composer: add aliases for 'outdated' commands
Added `co` alias for `composer outdated` and `cod` for `composer
outdated --direct`

Closes #5127
2020-05-11 20:04:52 +02:00
Michael Stucki
f6a03b2396 composer: use cache to fix slowness during startup
Fixes #6647
Closes #6664
2020-05-11 12:29:40 +02:00
Shahin Sorkh
54c29bbde1
composer: fix cdo alias due to command api change (#8828) 2020-04-13 17:23:52 +02:00
Thomas Ruiz
864b441688
composer: keep composer autocompletion when using global (#5933) 2020-02-28 19:28:55 +01:00
Rob Loach
0de3b29fd3 composer: Fix bin directory when Composer is not available (#6240)
* Fix for Composer's bin when Composer isn't global

When Composer isn't globally installed, the `composer global` call results in an error. This checks to see if Composer is available before making the call. When Composer isn't available, it will just manually set the directories.

* Fix Composer brackets in global bin directory

* composer: Apply feedback from ricpelo

This applies ricpelo's feedback at https://github.com/robbyrussell/oh-my-zsh/pull/6240#pullrequestreview-64253321

* composer: Fix path check syntax

* composer: test with $commands[] syntax
2018-08-19 21:46:22 +02:00
jrisebor
1fca822ab2 Fix Standard Error Redirection for composer plugin (#5935) 2017-11-07 07:50:08 -08:00
Ricardo Pérez
4fba92e04f Use proper config bin directory (#5886)
Add the proper config bin directory to `PATH` instead of the previously (incorrect) fixed `~/.composer/vendor/bin`. Nowadays the right config dir is `~/.config/composer/vendor/bin`.
2017-02-22 23:52:23 -08:00
travoltron
98d8d3429f Update composer.plugin.zsh (#5889)
Adds remove/global remove and optimize-autoloader commands.
2017-02-20 10:21:36 -08:00
Bilal Amarni
0d45e771c8 [Composer] redirect stderr to /dev/null for completion commands 2015-12-06 13:56:10 +01:00
Oleg Voronkovich
8b5950b812 Fix: "\s" is a gawk-specific regexp operator. 2015-02-17 01:24:21 +03:00
Marc Cornellà
6fb866183d Remove composer.json file requirement
This is because we can't be sure which arguments require a json file
and which don't, so the `else' statement will always be difficult to
check for correctness.
2015-02-10 19:32:59 +01:00
Maxime Fabre
ef220f0928 Add aliases for composer global 2015-02-10 19:32:59 +01:00
Andrey Janzen
5f4e8e57da Allow completion for 'composer.phar', not only 'composer'
Use $_comp_command1 for command list generation instead of 'composer':

  `$_comp_command1` contains the command written in the command line.
  This allows us to have a different composer name
2015-02-10 19:32:59 +01:00
Julien Pepy
0cc3afe277 Fix get command list for recent composer versions 2015-02-10 19:32:59 +01:00
Robby Russell
a910aef0c4 Revert "Add Composer's local binaries to PATH" 2014-09-01 13:01:01 +02:00
nervo
14f055d0bb Add Composer's local binaries to PATH 2014-08-31 15:41:02 +02:00
Rob Loach
ce9ec85c63 Add Composer's global binaries to PATH 2014-06-28 10:12:20 +02:00
Gunther Konig
85c43f8a89 remove unused function 2013-06-21 12:38:17 +03:00
Gunther Konig
decf9cdb31 autocomplete required packages as second argumet 2013-06-21 12:21:25 +03:00
Robby Russell
cb8ccaf3cc Merge pull request #1634 from Anahkiasen/patch-1
Add alias for "composer dump-autoload"
2013-04-23 20:03:10 -07:00
hacfi
4bf174c38b Autocomplete composer default methods if composer.json is not available
This plugin currently doesn't autocomplete composer commands if there is no composer.json in the current dir. However, the commands create-project, init, search, selfupdate and show are still useful without a composer.json!
2013-03-13 04:06:16 +01:00
Maxime Fabre
4bb7b698ca Add alias for "composer dump-autoload" 2013-02-28 11:50:39 +01:00
Daniel Gomes
9365fd03f6 added a comment to the composer installation alias 2012-10-05 21:14:44 +01:00
Daniel Gomes
6630919bce added Composer completition and aliases 2012-10-05 21:13:10 +01:00