openshift: add {bash,zsh}-completion
This commit is contained in:
parent
93a5152c82
commit
6f20bc3ef6
1 changed files with 6 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue