Merge pull request from superherointj/fluxcd-refactor-shell-completion

fluxcd: refactor shell completion
This commit is contained in:
Sandro 2024-07-17 19:16:29 +02:00 committed by GitHub
commit e9771068c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,8 +60,8 @@ buildGoModule rec {
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
for shell in bash fish zsh; do
$out/bin/flux completion $shell > flux.$shell
installShellCompletion flux.$shell
installShellCompletion --cmd flux \
--$shell <($out/bin/flux completion $shell)
done
'';