task icon indicating copy to clipboard operation
task copied to clipboard

Completion scripts for Fedora use incorrect binary name

Open YurBoiRene opened this issue 1 year ago • 1 comments

The completion scripts given from go-task --completion $shell use the task binary (e.g. fish: set GO_TASK_PROGNAME task). In Fedora the installed binary is go-task. This causes the competition script to not work.

The work around I used is to copy the completion script, modify the script to use go-task, and place it into my shell's config.

  • Task version: 3.39.2
  • Operating system: Fedora 40
  • Experiments enabled: None

YurBoiRene avatar Oct 28 '24 14:10 YurBoiRene

Would it be reasonable to do this in the completion script (task/completion/fish/task.fish):

set -qU GO_TASK_PROGNAME; or set -Ux GO_TASK_PROGNAME task

and then you set an envar in your shell GO_TASK_PROGNAME=go-task

Perhaps, try it ... and if it works, or you have some other solution, then open a PR.

trulede avatar Dec 09 '25 23:12 trulede

Fixed in https://github.com/go-task/task/pull/2495 Will be available in the next release

vmaerten avatar Dec 12 '25 21:12 vmaerten