diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-04-13 15:13:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 15:13:36 +0200 |
commit | 482ee5dd2be801476eb19598139a3cde8edfdfd9 (patch) | |
tree | d9ea2958f5c8ebcc731e90694c96945c5b636fc9 | |
parent | 33ff968152ba364f17a5f8cde74ab25b6bad2897 (diff) | |
parent | c480fadd4bdee91dfdbb8232a1c4ad8432187196 (diff) | |
download | nixpkgs-482ee5dd2be801476eb19598139a3cde8edfdfd9.tar nixpkgs-482ee5dd2be801476eb19598139a3cde8edfdfd9.tar.gz nixpkgs-482ee5dd2be801476eb19598139a3cde8edfdfd9.tar.bz2 nixpkgs-482ee5dd2be801476eb19598139a3cde8edfdfd9.tar.lz nixpkgs-482ee5dd2be801476eb19598139a3cde8edfdfd9.tar.xz nixpkgs-482ee5dd2be801476eb19598139a3cde8edfdfd9.tar.zst nixpkgs-482ee5dd2be801476eb19598139a3cde8edfdfd9.zip |
Merge pull request #168472 from SuperSandro2000/atuin
atuin: simplify completion generation
-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 09827928618..4bb75f54787 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; { |