Commit Graph

30 Commits

Author SHA1 Message Date
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
2b59d052ef composer: autoload cache functions
Fixes #9236
2020-09-29 12:06:39 +02:00
fd786291ba composer: fix documented aliases 2020-05-11 20:10:36 +02:00
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
f6a03b2396 composer: use cache to fix slowness during startup
Fixes #6647
Closes #6664
2020-05-11 12:29:40 +02:00
54c29bbde1 composer: fix cdo alias due to command api change (#8828) 2020-04-13 17:23:52 +02:00
610b2529d2 Clean up plugin READMEs and a few plugins
- fasd
- history
- mercurial
- pylint
- repo
- yii2
2020-03-11 19:57:46 +01:00
864b441688 composer: keep composer autocompletion when using global (#5933) 2020-02-28 19:28:55 +01:00
f8ca1464b9 reword 2018-10-17 20:34:58 +02:00
d56cec1e8d Composer Readme added 2018-10-15 00:29:23 +05:30
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
1fca822ab2 Fix Standard Error Redirection for composer plugin (#5935) 2017-11-07 07:50:08 -08:00
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
98d8d3429f Update composer.plugin.zsh (#5889)
Adds remove/global remove and optimize-autoloader commands.
2017-02-20 10:21:36 -08:00
0d45e771c8 [Composer] redirect stderr to /dev/null for completion commands 2015-12-06 13:56:10 +01:00
8b5950b812 Fix: "\s" is a gawk-specific regexp operator. 2015-02-17 01:24:21 +03:00
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
ef220f0928 Add aliases for composer global 2015-02-10 19:32:59 +01:00
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
0cc3afe277 Fix get command list for recent composer versions 2015-02-10 19:32:59 +01:00
a910aef0c4 Revert "Add Composer's local binaries to PATH" 2014-09-01 13:01:01 +02:00
14f055d0bb Add Composer's local binaries to PATH 2014-08-31 15:41:02 +02:00
ce9ec85c63 Add Composer's global binaries to PATH 2014-06-28 10:12:20 +02:00
85c43f8a89 remove unused function 2013-06-21 12:38:17 +03:00
decf9cdb31 autocomplete required packages as second argumet 2013-06-21 12:21:25 +03:00
cb8ccaf3cc Merge pull request #1634 from Anahkiasen/patch-1
Add alias for "composer dump-autoload"
2013-04-23 20:03:10 -07:00
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
4bb7b698ca Add alias for "composer dump-autoload" 2013-02-28 11:50:39 +01:00
9365fd03f6 added a comment to the composer installation alias 2012-10-05 21:14:44 +01:00
6630919bce added Composer completition and aliases 2012-10-05 21:13:10 +01:00