diff options
author | 06kellyjac <dev@j-k.io> | 2020-10-26 09:20:30 +0000 |
---|---|---|
committer | 06kellyjac <dev@j-k.io> | 2020-10-26 09:24:51 +0000 |
commit | 4c812da8e5dd7d2615848f212eabbf7d4d9f6a33 (patch) | |
tree | 35aec0e3fcd5e64dd57cb0208cd3b981b26d1d3e /pkgs/applications/networking/cluster/kube3d | |
parent | 6c40c0ace80b4497be35da47d57f8553a746a921 (diff) |
kube3d: add completion for fish
fish completion was added in 3.0.2 https://github.com/rancher/k3d/releases/tag/v3.0.2
Diffstat (limited to 'pkgs/applications/networking/cluster/kube3d')
-rw-r--r-- | pkgs/applications/networking/cluster/kube3d/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/networking/cluster/kube3d/default.nix b/pkgs/applications/networking/cluster/kube3d/default.nix index bb3b7aedd8a4c..57a41d266e769 100644 --- a/pkgs/applications/networking/cluster/kube3d/default.nix +++ b/pkgs/applications/networking/cluster/kube3d/default.nix @@ -22,11 +22,13 @@ buildGoModule rec { ''; nativeBuildInputs = [ installShellFiles ]; + + # TODO: Move to enhanced installShellCompletion when in master: PR #83630 postInstall = '' - for shell in bash zsh; do - $out/bin/k3d completion $shell > k3d.$shell - installShellCompletion k3d.$shell - done + $out/bin/k3d completion bash > k3d.bash + $out/bin/k3d completion fish > k3d.fish + $out/bin/k3d completion zsh > _k3d + installShellCompletion k3d.{bash,fish} --zsh _k3d ''; vendorSha256 = null; |