Removed composer plugin's dependency on composer.json

Users should be able to use composer's autocompletion also in folders
outside of composer project.

// cc @danielcsgomes
This commit is contained in:
Ondrej Slinták 2013-01-22 20:31:28 +01:00
commit 52acad5e6c

View file

@ -2,7 +2,7 @@
# FILE: composer.plugin.zsh
# DESCRIPTION: oh-my-zsh composer plugin file.
# AUTHOR: Daniel Gomes (me@danielcsgomes.com)
# VERSION: 1.0.0
# VERSION: 1.0.1
# ------------------------------------------------------------------------------
# Composer basic command completion
@ -11,9 +11,7 @@ _composer_get_command_list () {
}
_composer () {
if [ -f composer.json ]; then
compadd `_composer_get_command_list`
fi
compadd `_composer_get_command_list`
}
compdef _composer composer
@ -26,4 +24,4 @@ alias ci='composer install'
alias ccp='composer create-project'
# install composer in the current directory
alias cget='curl -s https://getcomposer.org/installer | php'
alias cget='curl -s https://getcomposer.org/installer | php'