1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

Merge pull request #544 from AlexanderBeyn/fix-bash-completion

Fix bash completions when the current argument begins with a dash
This commit is contained in:
Andrey Nering 2021-08-07 13:54:39 -03:00 committed by GitHub
commit 50e5813222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ _task_completion()
return
fi
COMPREPLY=($(compgen -c | echo "$scripts" | grep $curr_arg));
COMPREPLY=($(compgen -c | echo "$scripts" | grep -- $curr_arg));
}
complete -F _task_completion task