From 783d48a7233c1f411bedbb8403daf2273697cd24 Mon Sep 17 00:00:00 2001 From: Iain Majer Date: Thu, 2 Jan 2025 09:46:55 +0000 Subject: [PATCH] go-task: update shell completions --- pkgs/by-name/go/go-task/package.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/go/go-task/package.nix b/pkgs/by-name/go/go-task/package.nix index 3f605df660ee..46f1442502a9 100644 --- a/pkgs/by-name/go/go-task/package.nix +++ b/pkgs/by-name/go/go-task/package.nix @@ -37,14 +37,10 @@ buildGoModule rec { postInstall = '' ln -s $out/bin/task $out/bin/go-task - installShellCompletion completion/{bash,fish,zsh}/* - - substituteInPlace $out/share/bash-completion/completions/task.bash \ - --replace-fail 'complete -F _task task' 'complete -F _task task go-task' - substituteInPlace $out/share/fish/vendor_completions.d/task.fish \ - --replace-fail 'complete -c $GO_TASK_PROGNAME' 'complete -c $GO_TASK_PROGNAME -c go-task' - substituteInPlace $out/share/zsh/site-functions/_task \ - --replace-fail '#compdef task' '#compdef task go-task' + installShellCompletion --cmd task \ + --bash <($out/bin/task --completion bash) \ + --fish <($out/bin/task --completion fish) \ + --zsh <($out/bin/task --completion zsh) ''; passthru = {