go-task: update shell completions
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user