completions/laravel: use _command_exists
Addresses bash-it/bash-it#1632
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
if command -v laravel > /dev/null; then
|
if _command_exists laravel
|
||||||
__laravel_completion() {
|
then
|
||||||
|
function __laravel_completion()
|
||||||
|
{
|
||||||
local OPTS=("-h --help -q --quiet --ansi --no-ansi -n --no-interaction -v -vv -vvv --verbose help list new")
|
local OPTS=("-h --help -q --quiet --ansi --no-ansi -n --no-interaction -v -vv -vvv --verbose help list new")
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
for _opt_ in ${OPTS[@]}; do
|
for _opt_ in ${OPTS[@]}; do
|
||||||
|
|||||||
Reference in New Issue
Block a user