mirror of
https://github.com/go-task/task.git
synced 2025-02-15 14:03:30 +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:
commit
50e5813222
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user