fix: autocomplete works with other binary than 'task' (#2495)

This commit is contained in:
Valentin Maerten
2025-12-07 12:20:45 +01:00
committed by GitHub
parent 12fbdd3ec7
commit 4af5278d73
4 changed files with 13 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
# vim: set tabstop=2 shiftwidth=2 expandtab:
_GO_TASK_COMPLETION_LIST_OPTION='--list-all'
TASK_CMD="${TASK_EXE:-task}"
function _task()
{
@@ -52,4 +53,4 @@ function _task()
__ltrim_colon_completions "$cur"
}
complete -F _task task
complete -F _task "$TASK_CMD"