mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
flavours: install shell completions using process substitution
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
93c6f425a4
commit
18f93edb9d
1 changed files with 4 additions and 4 deletions
|
@ -19,10 +19,10 @@ rustPlatform.buildRustPackage rec {
|
|||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
$out/bin/flavours --completions bash > flavours.bash
|
||||
$out/bin/flavours --completions fish > flavours.fish
|
||||
$out/bin/flavours --completions zsh > _flavours
|
||||
installShellCompletion --zsh _flavours --fish flavours.fish --bash flavours.bash
|
||||
installShellCompletion --cmd flavours \
|
||||
--zsh <($out/bin/flavours --completions zsh) \
|
||||
--fish <($out/bin/flavours --completions fish) \
|
||||
--bash <($out/bin/flavours --completions bash)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue