mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
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:
parent
615e41b0ec
commit
52acad5e6c
1 changed files with 3 additions and 5 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue