Merge pull request #38228 from mbode/kubectl_zsh_completion

kubernetes: add kubectl zsh completion
This commit is contained in:
Jörg Thalheim 2018-04-04 12:44:59 +01:00 committed by GitHub
commit df57003e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
mkdir -p "$out/bin" "$out/share/bash-completion/completions" "$man/share/man" "$pause/bin"
mkdir -p "$out/bin" "$out/share/bash-completion/completions" "$out/share/zsh/site-functions" "$man/share/man" "$pause/bin"
cp _output/local/go/bin/* "$out/bin/"
cp build/pause/pause "$pause/bin/pause"
@ -74,6 +74,7 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/kube-addons --set "KUBECTL_BIN" "$out/bin/kubectl"
$out/bin/kubectl completion bash > $out/share/bash-completion/completions/kubectl
$out/bin/kubectl completion zsh > $out/share/zsh/site-functions/_kubectl
'';
preFixup = ''