diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-04-13 12:54:54 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-04-13 12:54:54 +0200 |
commit | c480fadd4bdee91dfdbb8232a1c4ad8432187196 (patch) | |
tree | 8c9507fe9475535fd02d0e6f51144f142ced86ab /pkgs/tools/misc/atuin | |
parent | f893eecfe833f10ea10bc4cbdee1f0c5431bdef9 (diff) |
atuin: simplify completion generation
Diffstat (limited to 'pkgs/tools/misc/atuin')
-rw-r--r-- | pkgs/tools/misc/atuin/default.nix | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/pkgs/tools/misc/atuin/default.nix b/pkgs/tools/misc/atuin/default.nix index 09827928618ad..4bb75f547876f 100644 --- a/pkgs/tools/misc/atuin/default.nix +++ b/pkgs/tools/misc/atuin/default.nix @@ -26,15 +26,10 @@ rustPlatform.buildRustPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ]; postInstall = '' - HOME=$(mktemp -d) - for shell in bash fish zsh; do - $out/bin/atuin gen-completions -s $shell -o . - done - installShellCompletion --cmd atuin \ - --bash atuin.bash \ - --fish atuin.fish \ - --zsh _atuin + --bash <($out/bin/atuin gen-completions -s bash) \ + --fish <($out/bin/atuin gen-completions -s fish) \ + --zsh <($out/bin/atuin gen-completions -s zsh) ''; meta = with lib; { |