Commit Graph

20 Commits

Author SHA1 Message Date
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