From 7ed3cea40ba001065622721d4c32ecd7a56b5fdd Mon Sep 17 00:00:00 2001 From: Josh Willox Date: Fri, 14 Jan 2022 20:48:28 +1100 Subject: [PATCH] Add completions to nfpms packages --- .goreleaser.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5de825bd..5c880d8a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -54,6 +54,13 @@ nfpms: - deb - rpm file_name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}" + contents: + - src: completion/bash/task.bash + dst: /etc/bash_completion.d/task + - src: completion/fish/task.fish + dst: /usr/share/fish/completions/task.fish + - src: completion/zsh/_task + dst: /usr/local/share/zsh/site-functions/_task brews: - name: go-task