From 3cf55f070d1c77a89922263c62993cf9e536485c Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Tue, 23 May 2017 16:13:23 -0400 Subject: [PATCH] kops: enable bash and zsh completion --- pkgs/applications/networking/cluster/kops/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/networking/cluster/kops/default.nix b/pkgs/applications/networking/cluster/kops/default.nix index 1bb733887746..d15655b89db9 100644 --- a/pkgs/applications/networking/cluster/kops/default.nix +++ b/pkgs/applications/networking/cluster/kops/default.nix @@ -28,6 +28,13 @@ buildGoPackage rec { go-bindata -o federation/model/bindata.go -pkg model -prefix federation/model federation/model/...) ''; + postInstall = '' + mkdir -p $bin/share/bash-completion/completions + mkdir -p $bin/share/zsh/site-functions + $bin/bin/kops completion bash > $bin/share/bash-completion/completions/kops + $bin/bin/kops completion zsh > $bin/share/zsh/site-functions/_kops + ''; + meta = with stdenv.lib; { description = "Easiest way to get a production Kubernetes up and running"; homepage = https://github.com/kubernetes/kops;