openshift: add {bash,zsh}-completion

This commit is contained in:
Jens Binkert 2018-05-19 10:33:33 +02:00
parent 93a5152c82
commit 6f20bc3ef6

View File

@ -69,6 +69,12 @@ in stdenv.mkDerivation rec {
installPhase = ''
mkdir -p "$out/bin"
cp -a "_output/local/bin/$(go env GOOS)/$(go env GOARCH)/"* "$out/bin/"
mkdir -p "$out/etc/bash_completion.d"
cp -a contrib/completions/bash/oc "$out/etc/bash_completion.d"
cp -a contrib/completions/bash/openshift "$out/etc/bash_completion.d"
mkdir -p "$out/share/zsh/site-functions"
cp -a contrib/completions/zsh/oc "$out/share/zsh/site-functions"
cp -a contrib/completions/zsh/openshift "$out/share/zsh/site-functions"
'';
preFixup = ''