diff --git a/pkgs/by-name/fh/fh/package.nix b/pkgs/by-name/fh/fh/package.nix index e95a31fd5e9a..87cd65c52d07 100644 --- a/pkgs/by-name/fh/fh/package.nix +++ b/pkgs/by-name/fh/fh/package.nix @@ -37,10 +37,9 @@ rustPlatform.buildRustPackage (finalAttrs: { }; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' - installShellCompletion --cmd fh \ - --bash <($out/bin/fh completion bash) \ - --fish <($out/bin/fh completion fish) \ - --zsh <($out/bin/fh completion zsh) + for shell in bash fish zsh; do + installShellCompletion --cmd fh --"$shell" <("$out/bin/fh" completion "$shell") + done ''; __darwinAllowLocalNetworking = true;