mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
13 lines
294 B
Bash
13 lines
294 B
Bash
# Composer basic command completion
|
|
|
|
_composer_get_command_list () {
|
|
php composer.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
|
|
}
|
|
|
|
_composer () {
|
|
if [ -f composer.phar ]; then
|
|
compadd `_composer_get_command_list`
|
|
fi
|
|
}
|
|
|
|
compdef _composer composer.phar
|