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:
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…
Reference in New Issue
Block a user