1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-27 16:20:07 +00:00
Commit graph

21 commits

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