summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/cluster/kompose
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-04-26 13:16:51 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-04-27 08:48:42 +1000
commitfb5cf24d7b2154b75911137d27d8715e2f93cd0b (patch)
tree746ead3ab0210c33dfe00408ab7120116b86ffad /pkgs/applications/networking/cluster/kompose
parent8193ac091a54b55b3ada8f16085a67cf53e3c8e3 (diff)
kompose: update completion
Diffstat (limited to 'pkgs/applications/networking/cluster/kompose')
-rw-r--r--pkgs/applications/networking/cluster/kompose/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/applications/networking/cluster/kompose/default.nix b/pkgs/applications/networking/cluster/kompose/default.nix
index 09a69f4b80e2..2467ed93b32c 100644
--- a/pkgs/applications/networking/cluster/kompose/default.nix
+++ b/pkgs/applications/networking/cluster/kompose/default.nix
@@ -15,9 +15,10 @@ buildGoPackage rec {
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
- $bin/bin/kompose completion bash > kompose.bash
- $bin/bin/kompose completion zsh > kompose.zsh
- installShellCompletion kompose.{bash,zsh}
+ for shell in bash zsh; do
+ $bin/bin/kompose completion $shell > kompose.$shell
+ installShellCompletion kompose.$shell
+ done
'';
meta = with lib; {