kube3d: add completion for fish

fish completion was added in 3.0.2
https://github.com/rancher/k3d/releases/tag/v3.0.2
This commit is contained in:
06kellyjac 2020-10-26 09:20:30 +00:00
parent 6c40c0ace8
commit 4c812da8e5

View file

@ -22,11 +22,13 @@ buildGoModule rec {
''; '';
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
# TODO: Move to enhanced installShellCompletion when in master: PR #83630
postInstall = '' postInstall = ''
for shell in bash zsh; do $out/bin/k3d completion bash > k3d.bash
$out/bin/k3d completion $shell > k3d.$shell $out/bin/k3d completion fish > k3d.fish
installShellCompletion k3d.$shell $out/bin/k3d completion zsh > _k3d
done installShellCompletion k3d.{bash,fish} --zsh _k3d
''; '';
vendorSha256 = null; vendorSha256 = null;